Mercurial > libavcodec.hg
diff utils.c @ 2426:1ee03f2a6cd5 libavcodec
av_malloc vs av_mallocz patch by (Kurosu <kurosu inforezo org>)
author | michael |
---|---|
date | Wed, 12 Jan 2005 18:25:48 +0000 |
parents | 87b7fbed8609 |
children | f67b63ed036d |
line wrap: on
line diff
--- a/utils.c Wed Jan 12 11:14:12 2005 +0000 +++ b/utils.c Wed Jan 12 18:25:48 2005 +0000 @@ -314,7 +314,7 @@ //FIXME next ensures that linesize= 2^x uvlinesize, thats needed because some MC code assumes it buf->linesize[i]= ALIGN(pixel_size*w>>h_shift, STRIDE_ALIGN<<(h_chroma_shift-h_shift)); - buf->base[i]= av_mallocz((buf->linesize[i]*h>>v_shift)+16); //FIXME 16 + buf->base[i]= av_malloc((buf->linesize[i]*h>>v_shift)+16); //FIXME 16 if(buf->base[i]==NULL) return -1; memset(buf->base[i], 128, buf->linesize[i]*h>>v_shift);