Skip to content
Snippets Groups Projects
Commit 48c65d0d authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

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

rely on this.

Originally committed as revision 21394 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ddb901b7
No related branches found
No related tags found
No related merge requests found
...@@ -269,8 +269,8 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -269,8 +269,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
c->avctx = avctx; c->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8; avctx->pix_fmt = PIX_FMT_PAL8;
c->frame = av_malloc( avctx->width * avctx->height); c->frame = av_mallocz(avctx->width * avctx->height);
c->prev_frame = av_malloc( avctx->width * avctx->height); c->prev_frame = av_mallocz(avctx->width * avctx->height);
memset(c->pal, 0, sizeof(c->pal)); memset(c->pal, 0, sizeof(c->pal));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment