mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Use #define for backward compatibility only when --disable-dynamic-loading was specified.
This commit is contained in:
parent
b55c74b210
commit
0fa894c196
@ -41,6 +41,7 @@ extern "C" {
|
||||
#include <libavutil/fifo.h>
|
||||
#include <libavutil/mathematics.h>
|
||||
|
||||
#if defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 45, 101)
|
||||
#define av_frame_alloc avcodec_alloc_frame
|
||||
#define av_frame_free avcodec_free_frame
|
||||
@ -116,6 +117,7 @@ extern "C" {
|
||||
return codec != NULL && (codec->encode != NULL || codec->encode2 != NULL);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user