1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

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>
This commit is contained in:
Josh Allmann 2012-12-08 00:00:30 +01:00 committed by Janne Grunau
parent cd71af90a9
commit b3deec3253

View File

@ -601,10 +601,12 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
case 6: case 6:
FFSWAP(int32_t*, p1, p2); FFSWAP(int32_t*, p1, p2);
case 7: { 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 length2, order_half, filter_order, dval1, dval2;
int av_uninit(code_size); int av_uninit(code_size);
memset(filter, 0, MAX_PREDICTORS * sizeof(*filter));
if (length < 256) if (length < 256)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;