[packages/aubio] - fix building with ffmpeg 4.0 - rel 3
baggins
baggins at pld-linux.org
Sun Apr 29 01:33:28 CEST 2018
commit fd0e29a7b6fe6a060436cd283d3b862f8a834dbc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Apr 29 01:33:02 2018 +0200
- fix building with ffmpeg 4.0
- rel 3
aubio.spec | 4 +++-
ffmpeg4.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/aubio.spec b/aubio.spec
index c20737b..a9c63c2 100644
--- a/aubio.spec
+++ b/aubio.spec
@@ -7,11 +7,12 @@ Summary: aubio - library for audio labelling
Summary(pl.UTF-8): aubio - biblioteka do oznaczania dźwięku
Name: aubio
Version: 0.4.3
-Release: 2
+Release: 3
License: GPL v3+
Group: Libraries
Source0: http://aubio.piem.org/pub/%{name}-%{version}.tar.bz2
# Source0-md5: 52a960cfc8a3e3125f3a258545d1c7e5
+Patch0: ffmpeg4.patch
URL: http://aubio.piem.org/
BuildRequires: alsa-lib-devel >= 0.9.0
BuildRequires: doxygen
@@ -131,6 +132,7 @@ Wiązania Pythona do biblioteki aubio.
%prep
%setup -q
+%patch0 -p1
%build
export CC="%{__cc}"
diff --git a/ffmpeg4.patch b/ffmpeg4.patch
new file mode 100644
index 0000000..409b7a0
--- /dev/null
+++ b/ffmpeg4.patch
@@ -0,0 +1,11 @@
+--- aubio-0.4.3/src/io/source_avcodec.c~ 2016-07-25 02:51:30.000000000 +0200
++++ aubio-0.4.3/src/io/source_avcodec.c 2018-04-29 01:29:40.145074749 +0200
+@@ -43,7 +43,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;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aubio.git/commitdiff/fd0e29a7b6fe6a060436cd283d3b862f8a834dbc
More information about the pld-cvs-commit
mailing list