Mercurial > mplayer.hg
changeset 27578:911fc986b830
Use av_mallocz() instead of for() =0;
author | michael |
---|---|
date | Sun, 14 Sep 2008 19:25:16 +0000 |
parents | 1270a4919d4b |
children | cd952ef4ad31 |
files | libswscale/swscale.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Sun Sep 14 18:00:49 2008 +0000 +++ b/libswscale/swscale.c Sun Sep 14 19:25:16 2008 +0000 @@ -1063,8 +1063,7 @@ { 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++) {