1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 00:30:07 +02:00

FFmpeg: Fix import crash on older libav/FFmpeg versions.

avcodec_free_frame can't be directly replaced by av_free for older libav/FFmpeg
versions, because avcodec_free_frame takes a pointer to a pointer (**frame), but
av_free takes only a pointer (*frame).
This commit is contained in:
benjamin.drung@gmail.com 2014-06-05 21:59:03 +00:00
parent 277932dccb
commit c8d6505c64

View File

@ -52,7 +52,9 @@ extern "C" {
#endif
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 59, 100)
#define avcodec_free_frame av_free
inline void avcodec_free_frame(AVFrame **frame) {
av_free(*frame);
}
#endif
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 51, 100)