提交 b3deec32 编写于 作者: J Josh Allmann 提交者: Janne Grunau

takdec: fix initialisation of LOCAL_ALIGNED array

When LOCAL_ALIGNED uses manual alignment initialisation is not
possible.
Signed-off-by: NJanne Grunau <janne-libav@jannau.net>
上级 cd71af90
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册