diff --git a/record/ffemu.c b/record/ffemu.c index cdb1d25a6e..7c51b919ec 100644 --- a/record/ffemu.c +++ b/record/ffemu.c @@ -55,6 +55,11 @@ extern "C" { #include "../config.h" #endif +#if LIBAVUTIL_VERSION_INT <= AV_VERSION_INT(52, 9, 0) +#define av_frame_alloc avcodec_alloc_frame +#define av_frame_free avcodec_free_frame +#endif + struct ff_video_info { AVCodecContext *codec;