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