# HG changeset patch
# User koda
# Date 1458919673 14400
# Node ID 02657dddb5d812d2ea8b017b1a84e7e5a76a4257
# Parent  3ff4c021a24a3fb57bc1d221700e3dd60b92da09
Keep very old compatibility

diff -r 3ff4c021a24a -r 02657dddb5d8 hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Fri Mar 25 11:02:38 2016 -0400
+++ b/hedgewars/avwrapper/avwrapper.c	Fri Mar 25 11:27:53 2016 -0400
@@ -64,8 +64,13 @@
 #endif
 
 #if LIBAVCODEC_VERSION_MAJOR < 56
+#if LIBAVCODEC_VERSION_MAJOR < 55
+#define av_frame_free                       avfreep
+#else
+#define av_frame_free                       avcodec_free_frame
+#endif
+
 #define av_frame_alloc                      avcodec_alloc_frame
-#define av_frame_free                       avcodec_free_frame
 #define av_packet_rescale_ts                rescale_ts
 
 static void rescale_ts(AVPacket *pkt, AVRational ctb, AVRational stb)