[PATCH] libavinteraction: Adjust version guard for av_codec_is_encoder()
authorVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 12 Nov 2015 01:41:40 +0000 (02:41 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 12 Jan 2017 16:30:21 +0000 (16:30 +0000)
Gbp-Pq: Name 5de297c5621455b9117aa7caca2785d21ae1bf04.patch

QTfrontend/util/LibavInteraction.cpp

index d5fbe3762b2f34c7e78d913aa16cdd940a0db154..0c62aa49edb19360f64ba0db42b6a77b36aaeebe 100644 (file)
@@ -33,8 +33,11 @@ extern "C"
 #include "HWApplication.h"
 
 // compatibility section
-#if LIBAVCODEC_VERSION_MAJOR < 55
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 8, 0)
 #define av_codec_is_encoder(x)          x->encode
+#endif
+
+#if LIBAVCODEC_VERSION_MAJOR < 55
 #define AVCodecID                       CodecID
 #endif