libavinteraction: Adjust version guard for av_codec_is_encoder()
authorVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 12 Nov 2015 02:41:40 +0100
changeset 11356 ac423fd2b9a3
parent 11355 d94f65b66c60
child 11357 89fd907ccdec
libavinteraction: Adjust version guard for av_codec_is_encoder()
QTfrontend/util/LibavInteraction.cpp
--- a/QTfrontend/util/LibavInteraction.cpp	Wed Nov 11 21:57:28 2015 +0300
+++ b/QTfrontend/util/LibavInteraction.cpp	Thu Nov 12 02:41:40 2015 +0100
@@ -33,8 +33,11 @@
 #include "HWApplication.h"
 
 // compatibility section
+#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 av_codec_is_encoder(x)          x->encode
 #define AVCodecID                       CodecID
 #endif