1 |
commit: af459c88b6c5fdef8fca4d3c5a33aed8d0ff16a5 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 28 09:55:25 2022 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 10:05:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af459c88 |
7 |
|
8 |
media-libs/aubio: ffmpeg5 fix |
9 |
|
10 |
from upstream |
11 |
|
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
14 |
|
15 |
media-libs/aubio/aubio-0.4.9-r1.ebuild | 1 + |
16 |
media-libs/aubio/files/ffmpeg5.patch | 28 ++++++++++++++++++++++++++++ |
17 |
2 files changed, 29 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/aubio/aubio-0.4.9-r1.ebuild b/media-libs/aubio/aubio-0.4.9-r1.ebuild |
20 |
index 579361fe63c9..48d70ea69fd3 100644 |
21 |
--- a/media-libs/aubio/aubio-0.4.9-r1.ebuild |
22 |
+++ b/media-libs/aubio/aubio-0.4.9-r1.ebuild |
23 |
@@ -51,6 +51,7 @@ PYTHON_SRC_DIR="${S}" |
24 |
|
25 |
PATCHES=( |
26 |
"${FILESDIR}"/${PN}-0.4.9-docdir.patch |
27 |
+ "${FILESDIR}"/ffmpeg5.patch |
28 |
) |
29 |
|
30 |
src_prepare() { |
31 |
|
32 |
diff --git a/media-libs/aubio/files/ffmpeg5.patch b/media-libs/aubio/files/ffmpeg5.patch |
33 |
new file mode 100644 |
34 |
index 000000000000..e4901ad69c01 |
35 |
--- /dev/null |
36 |
+++ b/media-libs/aubio/files/ffmpeg5.patch |
37 |
@@ -0,0 +1,28 @@ |
38 |
+From 8a05420e5dd8c7b8b2447f82dc919765876511b3 Mon Sep 17 00:00:00 2001 |
39 |
+From: Paul Brossier <piem@××××.org> |
40 |
+Date: Tue, 25 Jan 2022 18:30:27 +0100 |
41 |
+Subject: [PATCH 1/1] [source_avcodec] define FF_API_LAVF_AVCTX for libavcodec |
42 |
+ > 59, thx @berolinux (closes gh-353) |
43 |
+ |
44 |
+--- |
45 |
+ src/io/source_avcodec.c | 4 ++++ |
46 |
+ 1 file changed, 4 insertions(+) |
47 |
+ |
48 |
+diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c |
49 |
+index e0ae93b5..1421bd9a 100644 |
50 |
+--- a/src/io/source_avcodec.c |
51 |
++++ b/src/io/source_avcodec.c |
52 |
+@@ -68,6 +68,10 @@ |
53 |
+ #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE |
54 |
+ #endif |
55 |
+ |
56 |
++#if LIBAVCODEC_VERSION_MAJOR >= 59 |
57 |
++#define FF_API_LAVF_AVCTX 1 |
58 |
++#endif |
59 |
++ |
60 |
+ struct _aubio_source_avcodec_t { |
61 |
+ uint_t hop_size; |
62 |
+ uint_t samplerate; |
63 |
+-- |
64 |
+2.11.0 |
65 |
+ |