Mercurial > libavcodec.hg
diff vb.c @ 10967:1c3a10f94570 libavcodec
Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to
rely on this.
author | reimar |
---|---|
date | Sat, 23 Jan 2010 10:25:22 +0000 |
parents | 81033a080136 |
children | d5f811c11f08 |
line wrap: on
line diff
--- a/vb.c Sat Jan 23 08:39:50 2010 +0000 +++ b/vb.c Sat Jan 23 10:25:22 2010 +0000 @@ -269,8 +269,8 @@ c->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; - c->frame = av_malloc( avctx->width * avctx->height); - c->prev_frame = av_malloc( avctx->width * avctx->height); + c->frame = av_mallocz(avctx->width * avctx->height); + c->prev_frame = av_mallocz(avctx->width * avctx->height); memset(c->pal, 0, sizeof(c->pal));