mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
Use av_mallocz() instead of for() =0;
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27610 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f9a7d91b9
commit
aee49d5e58
@ -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…
Reference in New Issue
Block a user