[source_avcodec] define FF_API_LAVF_AVCTX for libavcodec > 59, thx @berolinux (closes... fix/ffmpeg5
authorPaul Brossier <piem@piem.org>
Tue, 25 Jan 2022 17:30:27 +0000 (18:30 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 25 Jan 2022 17:32:20 +0000 (18:32 +0100)
src/io/source_avcodec.c

index e0ae93b..1421bd9 100644 (file)
 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
 #endif
 
+#if LIBAVCODEC_VERSION_MAJOR >= 59
+#define FF_API_LAVF_AVCTX 1
+#endif
+
 struct _aubio_source_avcodec_t {
   uint_t hop_size;
   uint_t samplerate;