[SCM] libav/experimental: ape: Replace memset(0) by zero initialization
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:03:34 UTC 2014
The following commit has been merged in the experimental branch:
commit f83896abda1e78ebbbda0f184b682b4fabadc682
Author: Diego Biurrun <diego at biurrun.de>
Date: Fri Jun 20 00:04:00 2014 +0200
ape: Replace memset(0) by zero initialization
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]);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list