OSDN Git Service

parsers: initialize MpegEncContext.slice_context_count to 1
authorJanne Grunau <janne-libav@jannau.net>
Thu, 5 Jan 2012 23:17:37 +0000 (00:17 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 6 Jan 2012 00:47:45 +0000 (01:47 +0100)
commitf907615f0813e8499f06a7eebccf1c63fce87c8e
tree01382964311578995424eaaa0e4b6c1bc9bcf2e6
parent580bb779360e9832e3b5581e349f76bca75ada08
parsers: initialize MpegEncContext.slice_context_count to 1

The mpeg4 video, H264 and VC-1 parser hold (directly or indirectly)
a MpegEncContext in their private context. Since they do not call the
common mpegvideo init function slice_context_count has explicitly set
to 1.
Prevents a null pointer dereference in the h264 parser and fixes
bug 193.
libavcodec/h264_parser.c
libavcodec/mpeg4video_parser.c
libavcodec/vc1_parser.c