Mercurial > libavcodec.hg
diff wmadec.c @ 2101:770743eb4329 libavcodec
altivec workaround
author | alex |
---|---|
date | Sat, 26 Jun 2004 10:35:55 +0000 |
parents | 2b0fc6b25ab8 |
children | 7524cda1604e |
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