[FFmpeg-cvslog] r27610 - trunk/libswscale/swscale.c

michael subversion
Sun Sep 14 21:25:16 CEST 2008


Author: michael
Date: Sun Sep 14 21:25:16 2008
New Revision: 27610

Log:
Use av_mallocz() instead of for() =0;


Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Sun Sep 14 21:25:16 2008
@@ -1063,8 +1063,7 @@ static inline int initFilter(int16_t **o
     {
         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++)
         {




More information about the ffmpeg-cvslog mailing list