Browse Source

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
tags/v0.6
Reimar Döffinger 15 years ago
parent
commit
48c65d0dc9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vb.c

+ 2
- 2
libavcodec/vb.c View File

@@ -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));



Loading…
Cancel
Save