avcodec/h264_parse: Check picture structure when initializing weight table
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Jun 2017 22:13:07 +0000 (00:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Jun 2017 22:48:23 +0000 (00:48 +0200)
commit09096fb68713089a8f97c8fa24e9d7f3bb9231d5
tree0f69522bb118bea51806a950b36e3551778df981
parente1b0044c234775bf99ab1a5c794240a9a692ad8d
avcodec/h264_parse: Check picture structure when initializing weight table

Fixes: runtime error: index 49 out of bounds for type 'int [48][2][2]'
Fixes: 2159/clusterfuzz-testcase-minimized-5267945972301824

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_parse.c
libavcodec/h264_parse.h
libavcodec/h264_parser.c
libavcodec/h264_slice.c