[packages/alsa-plugins] - fix avcodec version check

baggins baggins at pld-linux.org
Thu Aug 29 13:13:38 CEST 2013


commit a6826e95e2a5b04afe80cd2c352bf4f355f36042
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Aug 29 13:13:29 2013 +0200

    - fix avcodec version check

 alsa-plugins-avcodec-check.patch | 12 ++++++++++++
 alsa-plugins.spec                |  2 ++
 2 files changed, 14 insertions(+)
---
diff --git a/alsa-plugins.spec b/alsa-plugins.spec
index a9b01be..89b61d2 100644
--- a/alsa-plugins.spec
+++ b/alsa-plugins.spec
@@ -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 .
diff --git a/alsa-plugins-avcodec-check.patch b/alsa-plugins-avcodec-check.patch
new file mode 100644
index 0000000..3bfa2fb
--- /dev/null
+++ b/alsa-plugins-avcodec-check.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/alsa-plugins.git/commitdiff/a6826e95e2a5b04afe80cd2c352bf4f355f36042



More information about the pld-cvs-commit mailing list