changeset 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 34a65026fa06
children 81033a080136
files vb.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
 }