[FFmpeg-cvslog] r21394 - trunk/libavcodec/vb.c

reimar subversion
Sat Jan 23 11:25:23 CET 2010


Author: reimar
Date: Sat Jan 23 11:25:22 2010
New Revision: 21394

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

Modified:
   trunk/libavcodec/vb.c

Modified: trunk/libavcodec/vb.c
==============================================================================
--- trunk/libavcodec/vb.c	Sat Jan 23 11:23:47 2010	(r21393)
+++ trunk/libavcodec/vb.c	Sat Jan 23 11:25:22 2010	(r21394)
@@ -269,8 +269,8 @@ static av_cold int decode_init(AVCodecCo
     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));
 



More information about the ffmpeg-cvslog mailing list