Commit e2897be7 authored by kostya's avatar kostya

Zero palette in case not all entries are initialized later

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21384 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3aca9114
...@@ -254,6 +254,8 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -254,6 +254,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
c->frame = av_malloc( avctx->width * avctx->height); c->frame = av_malloc( avctx->width * avctx->height);
c->prev_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; 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