changeset 2101:770743eb4329 libavcodec

altivec workaround
author alex
date Sat, 26 Jun 2004 10:35:55 +0000
parents 8bf89660fffe
children 6681dcffb5cf
files wmadec.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wmadec.c	Sat Jun 26 10:09:58 2004 +0000
+++ b/wmadec.c	Sat Jun 26 10:35:55 2004 +0000
@@ -702,7 +702,12 @@
     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