]> git.pld-linux.org Git - packages/alsa-plugins.git/commitdiff
- fix avcodec version check
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 29 Aug 2013 11:13:29 +0000 (13:13 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 29 Aug 2013 11:13:29 +0000 (13:13 +0200)
alsa-plugins-avcodec-check.patch [new file with mode: 0644]
alsa-plugins.spec

diff --git a/alsa-plugins-avcodec-check.patch b/alsa-plugins-avcodec-check.patch
new file mode 100644 (file)
index 0000000..3bfa2fb
--- /dev/null
@@ -0,0 +1,12 @@
+diff -up alsa-plugins-1.0.27/a52/pcm_a52.c.orig alsa-plugins-1.0.27/a52/pcm_a52.c
+--- alsa-plugins-1.0.27/a52/pcm_a52.c.orig     2013-04-12 17:54:16.597201378 -0300
++++ alsa-plugins-1.0.27/a52/pcm_a52.c  2013-04-12 18:00:56.281158309 -0300
+@@ -27,7 +27,7 @@
+ #include <alsa/pcm_plugin.h>
+ #include AVCODEC_HEADER
+-#if LIBAVCODEC_VERSION_MAJOR >= 53 && LIBAVCODEC_VERSION_MINOR >= 34
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 34, 0)
+ #include <libavutil/audioconvert.h>
+ #include <libavutil/mem.h>
+ #define USE_AVCODEC_FRAME
index a9b01be528b8c2c08a2c7d4ee3619ce5218c4bca..89b61d2c4b6f9417c1713a797f0a80a4bb969af9 100644 (file)
@@ -8,6 +8,7 @@ Group:          Libraries
 Source0:       ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
 # Source0-md5: ada0163e0e84c787bfc929ad0f3f5cb8
 Source1:       %{name}-pulse.conf
+Patch0:                %{name}-avcodec-check.patch
 URL:           http://www.alsa-project.org/
 BuildRequires: alsa-lib-devel >= 1.0.18
 BuildRequires: automake
@@ -192,6 +193,7 @@ Wtyczka wejścia-wyjścia PCM usb_stream dla systemu ALSA.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 cp -f /usr/share/automake/config.sub .
This page took 0.115697 seconds and 4 git commands to generate.