summaryrefslogtreecommitdiff
path: root/src/combined/ffmpeg/ffmpeg_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/ffmpeg/ffmpeg_compat.h')
-rw-r--r--src/combined/ffmpeg/ffmpeg_compat.h7
1 files changed, 7 insertions, 0 deletions
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