Commit 42e589b6 authored by reimar's avatar reimar

Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to

rely on this.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21394 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 514c0dbf
......@@ -269,8 +269,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment