aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@smartjog.com>2006-08-22 16:23:56 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2006-08-22 16:23:56 +0000
commitb3701f5cc05280b62fe48257d6c5b981a830ea3d (patch)
treeda29143128d09bfe92356d66af1dc1d67d4c3792 /libavcodec/wmadec.c
parent69fd15f87149304be95bd2ea684aeb75dfb68490 (diff)
downloadffmpeg-b3701f5cc05280b62fe48257d6c5b981a830ea3d.tar.gz
Alignment of the LT window, segfault fix patch by Baptiste Coudurier.
Originally committed as revision 6051 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c2
1 files changed, 1 insertions, 1 deletions
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)));