From 27276496777dce487d6438d93da46095fce82f43 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 22 Jan 2010 18:28:41 +0000 Subject: Zero palette in case not all entries are initialized later Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vb.c') diff --git a/libavcodec/vb.c b/libavcodec/vb.c index 551b10657c..0d5168a225 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -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; } -- cgit v1.2.3