changeset 10967:1c3a10f94570 libavcodec

Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to rely on this.
author reimar
date Sat, 23 Jan 2010 10:25:22 +0000
parents c29ee479e359
children c1cccc058c7a
files vb.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));