From 655dae0f29dc0e3fb6f822fe94de2f03f856642d Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Thu, 12 Nov 2015 02:41:40 +0100 Subject: [PATCH] [PATCH] libavinteraction: Adjust version guard for av_codec_is_encoder() Gbp-Pq: Name 5de297c5621455b9117aa7caca2785d21ae1bf04.patch --- QTfrontend/util/LibavInteraction.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2