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

Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Michael Niedermayer 2008-09-14 19:25:16 +00:00
parent 45e18be87d
commit 22129c78d7

View File

@ -1063,8 +1063,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
{
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++)
{