# HG changeset patch # User Vittorio Giovara # Date 1447292500 -3600 # Node ID 7ee2697a52678f2f1a805bf5e34bea04164a77a1 # Parent 49c82c3e383677bd9dcda4ebcceec26008c580bf libavinteraction: Adjust version guard for av_codec_is_encoder() diff -r 49c82c3e3836 -r 7ee2697a5267 QTfrontend/util/LibavInteraction.cpp --- a/QTfrontend/util/LibavInteraction.cpp Tue Nov 10 13:53:40 2015 +0100 +++ 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