diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index a9cf2005ed..126b6d7e57 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -926,10 +926,8 @@ static void long_filter_ehigh_3830(int32_t *buffer, int length) { int i, j; int32_t dotprod, sign; - int32_t coeffs[8], delay[8]; + int32_t coeffs[8] = { 0 }, delay[8] = { 0 }; - memset(coeffs, 0, sizeof(coeffs)); - memset(delay, 0, sizeof(delay)); for (i = 0; i < length; i++) { dotprod = 0; sign = APESIGN(buffer[i]);