1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Bernd Kuhls <bernd@kuhls.net>
Date: Tue, 7 Oct 2025 09:05:50 +0200
Subject: Fix compilation with ffmpeg-8.0
Origin: upstream
Bug: https://github.com/aubio/aubio/pull/427
Last-Update: 2025-10-07
---
src/io/source_avcodec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
index bdacf1b..fabc283 100644
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -70,8 +70,10 @@
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0)
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
-#else
+#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 40, 100)
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
+#else
+#define AUBIO_AVCODEC_MAX_BUFFER_SIZE 16384
#endif
#if LIBAVCODEC_VERSION_MAJOR >= 59
|