media-libs/aubio: fix build with ffmpeg4
authorAlexis Ballier <aballier@gentoo.org>
Fri, 20 Apr 2018 14:51:11 +0000 (16:51 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 20 Apr 2018 18:11:56 +0000 (20:11 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

media-libs/aubio/aubio-0.4.6.ebuild
media-libs/aubio/files/aubio-0.4.6-ffmpeg4.patch [new file with mode: 0644]

index c02467cd6e7180ecefb709065b40f8ac33a49709..9c6af6537ba099b95388f61573712225d1dc6ccb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -40,6 +40,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DOCS=( AUTHORS ChangeLog README.md )
 PYTHON_SRC_DIR="${S}"
+PATCHES=( "${FILESDIR}/${PN}-0.4.6-ffmpeg4.patch" )
 
 src_prepare() {
        default
diff --git a/media-libs/aubio/files/aubio-0.4.6-ffmpeg4.patch b/media-libs/aubio/files/aubio-0.4.6-ffmpeg4.patch
new file mode 100644 (file)
index 0000000..7df4665
--- /dev/null
@@ -0,0 +1,13 @@
+Index: aubio-0.4.6/src/io/source_avcodec.c
+===================================================================
+--- aubio-0.4.6.orig/src/io/source_avcodec.c
++++ aubio-0.4.6/src/io/source_avcodec.c
+@@ -58,7 +58,7 @@
+ #include "fmat.h"
+ #include "source_avcodec.h"
+ 
+-#define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
++#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
+ 
+ struct _aubio_source_avcodec_t {
+   uint_t hop_size;