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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ffmpeg_compat.h b/src/combined/ffmpeg/ffmpeg_compat.h
index edd01ddba..4d9d66bf0 100644
--- a/src/combined/ffmpeg/ffmpeg_compat.h
+++ b/src/combined/ffmpeg/ffmpeg_compat.h
@@ -205,4 +205,15 @@
# define AV_BUFFER 1
#endif
+#if LIBAVCODEC_VERSION_INT < AV_INT_VERSION(55,63,100)
+# define avcodec_free_context(pp) av_free(*(pp))
+#endif
+
+#if LIBAVCODEC_VERSION_INT < AV_INT_VERSION(54,59,100)
+# define avcodec_free_frame(pp) av_free(*(pp))
+#elif LIBAVCODEC_VERSION_INT >= AV_INT_VERSION(55,45,101)
+# define avcodec_alloc_frame() av_frame_alloc()
+# define avcodec_free_frame(pp) av_frame_free(pp)
+#endif
+
#endif /* XINE_AVCODEC_COMPAT_H */