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:
parent
277932dccb
commit
c8d6505c64
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user