Commit 27276496 authored by Kostya Shishkov's avatar Kostya Shishkov

Zero palette in case not all entries are initialized later

Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 64810754
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment