summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/vb.c2
1 files changed, 2 insertions, 0 deletions
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;
}