From b3701f5cc05280b62fe48257d6c5b981a830ea3d Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 22 Aug 2006 16:23:56 +0000 Subject: [PATCH] Alignment of the LT window, segfault fix patch by Baptiste Coudurier. Originally committed as revision 6051 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 8f44817318..b6c5116943 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -715,7 +715,7 @@ 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]; + DECLARE_ALIGNED_16(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)));