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

kostya subversion
Fri Jan 22 19:28:41 CET 2010


Author: kostya
Date: Fri Jan 22 19:28:41 2010
New Revision: 21384

Log:
Zero palette in case not all entries are initialized later

Modified:
   trunk/libavcodec/vb.c

Modified: trunk/libavcodec/vb.c
==============================================================================
--- trunk/libavcodec/vb.c	Fri Jan 22 17:12:55 2010	(r21383)
+++ trunk/libavcodec/vb.c	Fri Jan 22 19:28:41 2010	(r21384)
@@ -254,6 +254,8 @@ static av_cold int decode_init(AVCodecCo
     c->frame      = av_malloc( avctx->width * avctx->height);
     c->prev_frame = av_malloc( avctx->width * avctx->height);
 
+    memset(c->pal, 0, sizeof(c->pal));
+
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list