diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2012-12-08 00:00:30 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-12-08 00:00:30 +0100 |
commit | b3deec325310938ec0a38a8ed1a795c451f2ea73 (patch) | |
tree | 9e925fb3a9488190b5b1bd6c4957049a048829bb /libavcodec/takdec.c | |
parent | cd71af90a92def2cc9c1dd3753958f348fb4868f (diff) | |
download | ffmpeg-b3deec325310938ec0a38a8ed1a795c451f2ea73.tar.gz |
takdec: fix initialisation of LOCAL_ALIGNED array
When LOCAL_ALIGNED uses manual alignment initialisation is not
possible.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/takdec.c')
-rw-r--r-- | libavcodec/takdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 0ac870cc6c..d47db4818c 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -601,10 +601,12 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length) case 6: FFSWAP(int32_t*, p1, p2); case 7: { - LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]) = { 0 }; + LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]); int length2, order_half, filter_order, dval1, dval2; int av_uninit(code_size); + memset(filter, 0, MAX_PREDICTORS * sizeof(*filter)); + if (length < 256) return AVERROR_INVALIDDATA; |