comparison 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
comparison
equal deleted inserted replaced
10961:34a65026fa06 10962:c2ba520798a3
252 avctx->pix_fmt = PIX_FMT_PAL8; 252 avctx->pix_fmt = PIX_FMT_PAL8;
253 253
254 c->frame = av_malloc( avctx->width * avctx->height); 254 c->frame = av_malloc( avctx->width * avctx->height);
255 c->prev_frame = av_malloc( avctx->width * avctx->height); 255 c->prev_frame = av_malloc( avctx->width * avctx->height);
256 256
257 memset(c->pal, 0, sizeof(c->pal));
258
257 return 0; 259 return 0;
258 } 260 }
259 261
260 static av_cold int decode_end(AVCodecContext *avctx) 262 static av_cold int decode_end(AVCodecContext *avctx)
261 { 263 {