OSDN Git Service

Zero palette in case not all entries are initialized later
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 22 Jan 2010 18:28:41 +0000 (18:28 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 22 Jan 2010 18:28:41 +0000 (18:28 +0000)
Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vb.c

index 551b106..0d5168a 100644 (file)
@@ -254,6 +254,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     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;
 }