summaryrefslogtreecommitdiffstats
path: root/aubio
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-10-16 19:47:22 +0000
committer Eric Hameleers <alien@slackware.com>2022-10-16 19:47:22 +0000
commit30772d22d77c625f4ade14b069e7f7eb47e9f57e (patch)
tree7f8cab79e4a65175aacabab4f8f04096b2769ddd /aubio
parent52a9de96dcb154700d0845a0909bd85119d30d40 (diff)
downloadasb-30772d22d77c625f4ade14b069e7f7eb47e9f57e.tar.gz
asb-30772d22d77c625f4ade14b069e7f7eb47e9f57e.tar.xz
Initial revision
Diffstat (limited to 'aubio')
-rw-r--r--aubio/build/patches/aubio_ffmpeg5.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/aubio/build/patches/aubio_ffmpeg5.patch b/aubio/build/patches/aubio_ffmpeg5.patch
new file mode 100644
index 00000000..aace41a6
--- /dev/null
+++ b/aubio/build/patches/aubio_ffmpeg5.patch
@@ -0,0 +1,25 @@
+From 8a05420e5dd8c7b8b2447f82dc919765876511b3 Mon Sep 17 00:00:00 2001
+From: Paul Brossier <piem@piem.org>
+Date: Tue, 25 Jan 2022 18:30:27 +0100
+Subject: [PATCH] [source_avcodec] define FF_API_LAVF_AVCTX for libavcodec >
+ 59, thx @berolinux (closes gh-353)
+
+---
+ src/io/source_avcodec.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
+index e0ae93b5..1421bd9a 100644
+--- 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;