mpeg4video_parser: init static tables before use, fix nulll ptr deref
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Nov 2012 18:21:29 +0000 (19:21 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Nov 2012 18:21:59 +0000 (19:21 +0100)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpeg4video_parser.c

index d609440..3cbd69d 100644 (file)
@@ -109,6 +109,8 @@ static av_cold int mpeg4video_parse_init(AVCodecParserContext *s)
 {
     struct Mp4vParseContext *pc = s->priv_data;
 
+    ff_mpeg4videodec_static_init();
+
     pc->first_picture = 1;
     pc->enc.quant_precision=5;
     pc->enc.slice_context_count = 1;