altivec workaround

Originally committed as revision 3259 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2004-06-26 10:35:55 +00:00
parent 491c4a1005
commit ed0219a69f

View File

@ -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