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:
parent
45e18be87d
commit
22129c78d7
@ -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++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user