# HG changeset patch # User koda # Date 1458919278 14400 # Node ID 968bff2534ca29a692644f5a197c488cc2db8d87 # Parent dc0fc56c03ca2f5aeb7c55e6d34c007b59f01cdf Keep very old compatibility diff -r dc0fc56c03ca -r 968bff2534ca hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Fri Mar 25 11:01:01 2016 -0400 +++ b/hedgewars/avwrapper/avwrapper.c Fri Mar 25 11:21:18 2016 -0400 @@ -68,8 +68,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_frame_unref avcodec_get_frame_defaults #define av_packet_rescale_ts rescale_ts