ref: 8a05420e5dd8c7b8b2447f82dc919765876511b3
parent: 808c6ac5bb69646d021dd766a0ed5ddf886d0ba7
author: Paul Brossier <piem@piem.org>
date: Tue Jan 25 13:30:27 EST 2022
[source_avcodec] define FF_API_LAVF_AVCTX for libavcodec > 59, thx @berolinux (closes gh-353)
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -68,6 +68,10 @@
#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;