[FFmpeg-cvslog] mpeg4video_parser: init static tables before use, fix nulll ptr deref

Michael Niedermayer git at videolan.org
Tue Nov 13 19:28:45 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 13 19:21:29 2012 +0100| [7c76eaeca2791261d3f4f5c98c95f44abdbd879a] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c76eaeca2791261d3f4f5c98c95f44abdbd879a
---

 libavcodec/mpeg4video_parser.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c
index d609440..3cbd69d 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;



More information about the ffmpeg-cvslog mailing list