Commit 59e5cae9 authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27610 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 3b7396e6
...@@ -1063,8 +1063,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF ...@@ -1063,8 +1063,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
{ {
int i; int i;
filterSize= 1; filterSize= 1;
filter= av_malloc(dstW*sizeof(double)*filterSize); filter= av_mallocz(dstW*sizeof(double)*filterSize);
for (i=0; i<dstW*filterSize; i++) filter[i]=0;
for (i=0; i<dstW; i++) for (i=0; i<dstW; i++)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment