mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-11 23:25:53 +01: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user