]> git.pld-linux.org Git - packages/alsa-plugins.git/commitdiff
- updated to 1.0.26 auto/th/alsa-plugins-1.0.26-1 auto/ti/alsa-plugins-1.0.26-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Sep 2012 19:51:00 +0000 (21:51 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Sep 2012 19:51:00 +0000 (21:51 +0200)
- added ffmpeg patch to fix build with ffmpeg 0.11+

alsa-plugins-ffmpeg.patch [new file with mode: 0644]
alsa-plugins.spec

diff --git a/alsa-plugins-ffmpeg.patch b/alsa-plugins-ffmpeg.patch
new file mode 100644 (file)
index 0000000..a4d5f09
--- /dev/null
@@ -0,0 +1,25 @@
+--- alsa-plugins-1.0.26/a52/pcm_a52.c.orig     2012-09-06 09:52:58.000000000 +0200
++++ alsa-plugins-1.0.26/a52/pcm_a52.c  2012-09-08 20:42:43.420501233 +0200
+@@ -441,7 +441,21 @@
+ #else
+   rec->avctx->sample_fmt = SAMPLE_FMT_S16;
+ #endif
+-#if LIBAVCODEC_VERSION_MAJOR > 52 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 3)
++#if LIBAVCODEC_VERSION_MAJOR >= 54
++      switch (io->channels) {
++      case 2:
++              rec->avctx->channel_layout = AV_CH_LAYOUT_STEREO;
++              break;
++      case 4:
++              rec->avctx->channel_layout = AV_CH_LAYOUT_QUAD;
++              break;
++      case 6:
++              rec->avctx->channel_layout = AV_CH_LAYOUT_5POINT1;
++              break;
++      default:
++              break;
++      }
++#elif LIBAVCODEC_VERSION_MAJOR > 52 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 3)
+       switch (io->channels) {
+       case 2:
+               rec->avctx->channel_layout = CH_LAYOUT_STEREO;
index 35cea8eea15ba17acc537cd0531195cc160e3635..f56bfc7279228d84048be458fa54e3b26abce9aa 100644 (file)
@@ -1,13 +1,14 @@
 Summary:       Advanced Linux Sound Architecture - plugins
 Summary(pl.UTF-8):     Advanced Linux Sound Architecture - wtyczki
 Name:          alsa-plugins
-Version:       1.0.25
+Version:       1.0.26
 Release:       1
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
-# Source0-md5: 038c023eaa51171f018fbf7141255185
+# Source0-md5: 4facd408326ef5567a7d4ceb6589e6b0
 Source1:       %{name}-pulse.conf
+Patch0:                %{name}-ffmpeg.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.451701 seconds and 4 git commands to generate.