Mercurial > libavcodec.hg
comparison wmadec.c @ 3606:e28285ddde8d libavcodec
Alignment of the LT window, segfault fix patch by Baptiste Coudurier.
author | banan |
---|---|
date | Tue, 22 Aug 2006 16:23:56 +0000 |
parents | 6a358dccf2ab |
children | 44fdf93a0901 |
comparison
equal
deleted
inserted
replaced
3605:6702a154df1f | 3606:e28285ddde8d |
---|---|
713 unrecorrable error. */ | 713 unrecorrable error. */ |
714 static int wma_decode_block(WMADecodeContext *s) | 714 static int wma_decode_block(WMADecodeContext *s) |
715 { | 715 { |
716 int n, v, a, ch, code, bsize; | 716 int n, v, a, ch, code, bsize; |
717 int coef_nb_bits, total_gain, parse_exponents; | 717 int coef_nb_bits, total_gain, parse_exponents; |
718 float window[BLOCK_MAX_SIZE * 2]; | 718 DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]); |
719 // XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec | 719 // XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec |
720 #ifdef HAVE_ALTIVEC | 720 #ifdef HAVE_ALTIVEC |
721 volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16))); | 721 volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16))); |
722 #else | 722 #else |
723 int nb_coefs[MAX_CHANNELS]; | 723 int nb_coefs[MAX_CHANNELS]; |