diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-13 19:21:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-13 19:21:59 +0100 |
commit | 7c76eaeca2791261d3f4f5c98c95f44abdbd879a (patch) | |
tree | 26ddcce44169da89e75bec795809f8c8bcdd3e4e /libavcodec | |
parent | 1bd024ec770e7639a0c7a545257b8b34bfa6aa85 (diff) | |
download | ffmpeg-7c76eaeca2791261d3f4f5c98c95f44abdbd879a.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpeg4video_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c index d6094404e7..3cbd69d00a 100644 --- a/libavcodec/mpeg4video_parser.c +++ b/libavcodec/mpeg4video_parser.c @@ -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; |