File: ffmpeg8.0.patch

package info (click to toggle)
aubio 0.4.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,720 kB
  • sloc: python: 20,447; ansic: 20,127; makefile: 348; sh: 232
file content (28 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
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