diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-14 19:25:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-14 19:25:16 +0000 |
commit | 22129c78d7ec7de51629dfdc2f7fadc8410a4724 (patch) | |
tree | 7ab5c0ae9614a6672a963ee8506571c0323fcb0a /libswscale/swscale.c | |
parent | 45e18be87d96ac880b54071e251dc714f7de14f4 (diff) | |
download | ffmpeg-22129c78d7ec7de51629dfdc2f7fadc8410a4724.tar.gz |
Use av_mallocz() instead of for() =0;
Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 8e74d2e297..337b23a1dc 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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++) { |