More compatibility wrappers for video
authorkoda
Fri, 25 Mar 2016 10:54:23 -0400
changeset 11618 bc83e11e5ee7
parent 11617 aed348042a77
child 11619 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)