Alignment of the LT window, segfault fix patch by Baptiste Coudurier.
authorBaptiste Coudurier <baptiste.coudurier@smartjog.com>
Tue, 22 Aug 2006 16:23:56 +0000 (16:23 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Tue, 22 Aug 2006 16:23:56 +0000 (16:23 +0000)
Originally committed as revision 6051 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/wmadec.c

index 8f44817..b6c5116 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)));