From 80fa80dcf4e5784576cc7f5336390eb6189e8e0e Mon Sep 17 00:00:00 2001 From: "benjamin.drung@gmail.com" Date: Sun, 25 May 2014 19:24:02 +0000 Subject: [PATCH] Use av_free instead of avcodec_free_frame for old libav/FFmpeg versions. --- src/FFmpeg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FFmpeg.h b/src/FFmpeg.h index c1e18f506..46c317c00 100644 --- a/src/FFmpeg.h +++ b/src/FFmpeg.h @@ -65,6 +65,10 @@ extern "C" { #define av_frame_free avcodec_free_frame #endif + #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 59, 100) + #define avcodec_free_frame av_free + #endif + #ifndef PKT_FLAG_KEY #define PKT_FLAG_KEY AV_PKT_FLAG_KEY #endif