[FFmpeg-cvslog] ape: Replace memset(0) by zero initialization

Diego Biurrun git at videolan.org
Mon Jun 23 01:12:14 CEST 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Jun 20 00:04:00 2014 +0200| [f83896abda1e78ebbbda0f184b682b4fabadc682] | committer: Diego Biurrun

ape: Replace memset(0) by zero initialization

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f83896abda1e78ebbbda0f184b682b4fabadc682
---

 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]);



More information about the ffmpeg-cvslog mailing list