aboutsummaryrefslogtreecommitdiff
path: root/libraries/alsa-plugins/ffmpeg.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-10-10 19:24:52 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-11-04 09:53:49 -0500
commit74e091d84bfb57f1ed198c97b75400ba570ee064 (patch)
tree9a8c823f7c4acba3d6ecd034f5cabfeadb02c428 /libraries/alsa-plugins/ffmpeg.patch
parent745f9bd3878dfbc0a1586fe6e3c5c99778f83aec (diff)
libraries/alsa-plugins: Updated for version 1.0.26.
Added a patch to build over the new ffmpeg Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/alsa-plugins/ffmpeg.patch')
-rw-r--r--libraries/alsa-plugins/ffmpeg.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/libraries/alsa-plugins/ffmpeg.patch b/libraries/alsa-plugins/ffmpeg.patch
new file mode 100644
index 0000000000000..fb8e0a95cfe30
--- /dev/null
+++ b/libraries/alsa-plugins/ffmpeg.patch
@@ -0,0 +1,28 @@
+https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5587
+
+diff -pru alsa-plugins-1.0.25-original/a52/pcm_a52.c alsa-plugins-1.0.25-for-ffmpeg-0.11/a52/pcm_a52.c
+--- alsa-plugins-1.0.25-original/a52/pcm_a52.c 2012-01-25 08:57:07.000000000 +0100
++++ alsa-plugins-1.0.25-for-ffmpeg-0.11/a52/pcm_a52.c 2012-06-01 14:59:47.096671464 +0200
+@@ -441,7 +441,21 @@ static int a52_prepare(snd_pcm_ioplug_t
+ #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 < 54) || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 3)
+ switch (io->channels) {
+ case 2:
+ rec->avctx->channel_layout = CH_LAYOUT_STEREO;