From c192cb6ba0ecbc8c35c79ffb05f71a011234153e Mon Sep 17 00:00:00 2001 From: Torsten Jager Date: Thu, 13 Mar 2014 00:46:00 +0100 Subject: Fix build regression #12510. --- src/combined/ffmpeg/ffmpeg_compat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/combined') diff --git a/src/combined/ffmpeg/ffmpeg_compat.h b/src/combined/ffmpeg/ffmpeg_compat.h index 56b7464ab..2c3315c6a 100644 --- a/src/combined/ffmpeg/ffmpeg_compat.h +++ b/src/combined/ffmpeg/ffmpeg_compat.h @@ -107,6 +107,13 @@ # define AVAUDIO 2 #endif +/* avcodec_encode_video(), av_packet_unref */ +#if LIBAVCODEC_VERSION_INT >= ((55<<16)|(25<<8)|100) +# define AVENCVIDEO 2 +#else +# define AVENCVIDEO 1 +#endif + /* AVFrame.age */ #if LIBAVCODEC_VERSION_INT >= 0x351C01 && LIBAVCODEC_VERSION_INT < 0x360000 // not sure about this - original condition was broken # define AVFRAMEAGE 1 -- cgit v1.2.3