From f83896abda1e78ebbbda0f184b682b4fabadc682 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 20 Jun 2014 00:04:00 +0200 Subject: [PATCH] ape: Replace memset(0) by zero initialization --- libavcodec/apedec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 6329295..d759619 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -935,10 +935,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]); -- 2.7.4