1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 09:31:13 +02:00

Use av_free instead of avcodec_free_frame for old libav/FFmpeg versions.

This commit is contained in:
benjamin.drung@gmail.com 2014-05-25 19:24:02 +00:00
parent 14b47b46ab
commit 80fa80dcf4

View File

@ -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