]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Alignment of the LT window, segfault fix patch by Baptiste Coudurier.
authorbanan <banan@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 22 Aug 2006 16:23:56 +0000 (16:23 +0000)
committerbanan <banan@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 22 Aug 2006 16:23:56 +0000 (16:23 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6051 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/wmadec.c

index 8f44817318e4a891fbb184008d02f78cde926d43..b6c51169430154af886de3c095c5f9dabf90fb41 100644 (file)
@@ -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)));