More compatibility wrappers for video
authorkoda
Fri, 25 Mar 2016 10:54:23 -0400
changeset 11623 bc83e11e5ee7
parent 11622 aed348042a77
child 11624 dc0fc56c03ca
More compatibility wrappers for video
hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Fri Mar 25 15:52:49 2016 +0100
+++ b/hedgewars/avwrapper/avwrapper.c	Fri Mar 25 10:54:23 2016 -0400
@@ -70,6 +70,7 @@
 #if LIBAVCODEC_VERSION_MAJOR < 56
 #define av_frame_alloc                      avcodec_alloc_frame
 #define av_frame_free                       av_freep
+#define av_frame_unref                      avcodec_get_frame_defaults
 #define av_packet_rescale_ts                rescale_ts
 
 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)