aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2004-06-26 10:35:55 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2004-06-26 10:35:55 +0000
commited0219a69f9132535c41f84bdd0c421b6ea08304 (patch)
treed334e7986291161cffe329c3d9179a313064ef5c /libavcodec
parent491c4a1005fe0d8e2d687140a6e92822af3fa373 (diff)
downloadffmpeg-ed0219a69f9132535c41f84bdd0c421b6ea08304.tar.gz
altivec workaround
Originally committed as revision 3259 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wmadec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index cf2db14946..0d6d95b625 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -702,7 +702,12 @@ static int wma_decode_block(WMADecodeContext *s)
int n, v, a, ch, code, bsize;
int coef_nb_bits, total_gain, parse_exponents;
float window[BLOCK_MAX_SIZE * 2];
+// XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec
+#ifdef HAVE_ALTIVEC
+ volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16)));
+#else
int nb_coefs[MAX_CHANNELS];
+#endif
float mdct_norm;
#ifdef TRACE