Takashi Iwai
0a74339319
- Replace pkgconfig(libavresample) with pkgconfig(libswresample) BuildRequires as ffmpeg-5 does not provide libavresample. - Add cdfe9ce.patch: [source_avcodec] avoid deprecation warning with latest avcodec api (58.134.100). - Add 8a05420.patch: [source_avcodec] define FF_API_LAVF_AVCTX for libavcodec > 59, thx @berolinux (closes gh-353). OBS-URL: https://build.opensuse.org/request/show/1045016 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/aubio?expand=0&rev=40
26 lines
729 B
Diff
26 lines
729 B
Diff
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;
|