diff vb.c @ 10962:c2ba520798a3 libavcodec

Zero palette in case not all entries are initialized later
author kostya
date Fri, 22 Jan 2010 18:28:41 +0000
parents d7ed9dcc78e3
children 81033a080136
line wrap: on
line diff
--- a/vb.c	Fri Jan 22 03:25:11 2010 +0000
+++ b/vb.c	Fri Jan 22 18:28:41 2010 +0000
@@ -254,6 +254,8 @@
     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;
 }