Browse Source

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

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
7c76eaeca2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/mpeg4video_parser.c

+ 2
- 0
libavcodec/mpeg4video_parser.c View File

@@ -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;


Loading…
Cancel
Save