From: Vittorio Giovara Date: Thu, 12 Nov 2015 01:41:40 +0000 (+0100) Subject: [PATCH] libavinteraction: Adjust version guard for av_codec_is_encoder() X-Git-Tag: archive/raspbian/1.0.0-8+rpi1~1^2^2^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=655dae0f29dc0e3fb6f822fe94de2f03f856642d;p=hedgewars.git [PATCH] libavinteraction: Adjust version guard for av_codec_is_encoder() Gbp-Pq: Name 5de297c5621455b9117aa7caca2785d21ae1bf04.patch --- diff --git a/QTfrontend/util/LibavInteraction.cpp b/QTfrontend/util/LibavInteraction.cpp index d5fbe37..0c62aa4 100644 --- a/QTfrontend/util/LibavInteraction.cpp +++ b/QTfrontend/util/LibavInteraction.cpp @@ -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