diff libswscale/swscale.c @ 27578:911fc986b830

Use av_mallocz() instead of for() =0;
author michael
date Sun, 14 Sep 2008 19:25:16 +0000
parents 1270a4919d4b
children cd952ef4ad31
line wrap: on
line diff
--- a/libswscale/swscale.c	Sun Sep 14 18:00:49 2008 +0000
+++ b/libswscale/swscale.c	Sun Sep 14 19:25:16 2008 +0000
@@ -1063,8 +1063,7 @@
     {
         int i;
         filterSize= 1;
-        filter= av_malloc(dstW*sizeof(double)*filterSize);
-        for (i=0; i<dstW*filterSize; i++) filter[i]=0;
+        filter= av_mallocz(dstW*sizeof(double)*filterSize);
 
         for (i=0; i<dstW; i++)
         {