Commit 7c76eaec authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg4video_parser: init static tables before use, fix nulll ptr deref

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1bd024ec
...@@ -109,6 +109,8 @@ static av_cold int mpeg4video_parse_init(AVCodecParserContext *s) ...@@ -109,6 +109,8 @@ static av_cold int mpeg4video_parse_init(AVCodecParserContext *s)
{ {
struct Mp4vParseContext *pc = s->priv_data; struct Mp4vParseContext *pc = s->priv_data;
ff_mpeg4videodec_static_init();
pc->first_picture = 1; pc->first_picture = 1;
pc->enc.quant_precision=5; pc->enc.quant_precision=5;
pc->enc.slice_context_count = 1; pc->enc.slice_context_count = 1;
......
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