]> git.pld-linux.org Git - packages/aubio.git/blame - ffmpeg6.patch
- upstream fix for ffmpeg 6, rel 6
[packages/aubio.git] / ffmpeg6.patch
CommitLineData
7d316ed5
JR
1From 8a05420e5dd8c7b8b2447f82dc919765876511b3 Mon Sep 17 00:00:00 2001
2From: Paul Brossier <piem@piem.org>
3Date: Tue, 25 Jan 2022 18:30:27 +0100
4Subject: [PATCH] [source_avcodec] define FF_API_LAVF_AVCTX for libavcodec >
5 59, thx @berolinux (closes gh-353)
6
7---
8 src/io/source_avcodec.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
12index e0ae93b5..1421bd9a 100644
13--- a/src/io/source_avcodec.c
14+++ b/src/io/source_avcodec.c
15@@ -68,6 +68,10 @@
16 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
17 #endif
18
19+#if LIBAVCODEC_VERSION_MAJOR >= 59
20+#define FF_API_LAVF_AVCTX 1
21+#endif
22+
23 struct _aubio_source_avcodec_t {
24 uint_t hop_size;
25 uint_t samplerate;
26--
272.11.0
28
This page took 0.1196 seconds and 4 git commands to generate.