projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e18be
)
Use av_mallocz() instead of for() =0;
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Sep 2008 19:25:16 +0000
(19:25 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Sep 2008 19:25:16 +0000
(19:25 +0000)
Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
8e74d2e
..
337b23a
100644
(file)
--- 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++)
{