summaryrefslogtreecommitdiff
path: root/libavcodec/takdec.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-12-07 22:13:57 +0000
committerMans Rullgard <mans@mansr.com>2012-12-07 22:13:57 +0000
commitcd71af90a92def2cc9c1dd3753958f348fb4868f (patch)
treeb3df0931c1f7ca668ecc01b90bfb351dea45dde9 /libavcodec/takdec.c
parent57231e4d5b467833fb289439cd35a92513bb55c1 (diff)
takdec: fix initialisation of LOCAL_ALIGNED array
When LOCAL_ALIGNED uses manual alignment initialisation is not possible. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/takdec.c')
-rw-r--r--libavcodec/takdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 87fcf832ba..0ac870cc6c 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -420,11 +420,13 @@ static void decode_filter_coeffs(TAKDecContext *s, int filter_order, int size,
static int decode_subframe(TAKDecContext *s, int32_t *decoded,
int subframe_size, int prev_subframe_size)
{
- LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]) = { 0, };
+ LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]);
GetBitContext *gb = &s->gb;
int i, ret;
int dshift, size, filter_quant, filter_order;
+ memset(filter, 0, MAX_PREDICTORS * sizeof(*filter));
+
if (!get_bits1(gb))
return decode_residues(s, decoded, subframe_size);