diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-01-23 10:25:22 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-01-23 10:25:22 +0000 |
commit | 48c65d0dc9d8164f1db726220c933f6392acf90e (patch) | |
tree | 42761902a17f536ee818f4ad1e7380ce1b5ca2e8 /libavcodec | |
parent | ddb901b74d7a71b6d4968f7490d1932821b5f703 (diff) | |
download | ffmpeg-48c65d0dc9d8164f1db726220c933f6392acf90e.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vb.c b/libavcodec/vb.c index 042ca56c25..f4f2ee1bfc 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -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)); |