aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-13 11:31:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-13 11:31:48 +0000
commit063a5ab86401606a8ade8515e78ccc27dd6ea3e1 (patch)
tree7a8da7277677ce0260cec292a44ddd09326f20e7 /testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch
parent5c9e8564ce71a8b229e70b4d54d748bfc7345fb1 (diff)
downloadaports-063a5ab86401606a8ade8515e78ccc27dd6ea3e1.tar.bz2
aports-063a5ab86401606a8ade8515e78ccc27dd6ea3e1.tar.xz
testing/mplayer2: rebuild against new libs and fix audio with gcc-4.6
Diffstat (limited to 'testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch')
-rw-r--r--testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch b/testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch
new file mode 100644
index 0000000000..148856c233
--- /dev/null
+++ b/testing/mplayer2/mplayer-gcc-4.6-audio-fix.patch
@@ -0,0 +1,22 @@
+Fix broken audio decoding when compiling with gcc-4.6
+http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2011-May/068495.html
+
+--- ./mp3lib/dct64_sse.c.orig
++++ ./mp3lib/dct64_sse.c
+@@ -113,7 +113,6 @@
+ }
+
+ {
+- real *costab = costab_mmx + 24;
+ int i;
+
+ __asm__(
+@@ -122,7 +121,7 @@
+ "movaps %1, %%xmm5\n\t"
+ "movaps %%xmm5, %%xmm6\n\t"
+ :
+- :"m"(*costab), "m"(*nnnn)
++ :"m"(costab_mmx[24]), "m"(*nnnn)
+ );
+
+ for (i = 0; i < 0x20; i += 8)