# HG changeset patch # User reimar # Date 1264242322 0 # Node ID 1c3a10f94570cdc9e39a9beffe2edf6505ad5b3e # Parent c29ee479e359aceebc4bbafaa9d8af569dded396 Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to rely on this. diff -r c29ee479e359 -r 1c3a10f94570 vb.c --- 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));