diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-10 00:13:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-10 00:48:23 +0200 |
commit | 09096fb68713089a8f97c8fa24e9d7f3bb9231d5 (patch) | |
tree | 0f69522bb118bea51806a950b36e3551778df981 /libavcodec/h264_parse.h | |
parent | e1b0044c234775bf99ab1a5c794240a9a692ad8d (diff) |
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>
Diffstat (limited to 'libavcodec/h264_parse.h')
-rw-r--r-- | libavcodec/h264_parse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264_parse.h b/libavcodec/h264_parse.h index 290da34d44..4d01620125 100644 --- a/libavcodec/h264_parse.h +++ b/libavcodec/h264_parse.h @@ -55,7 +55,8 @@ typedef struct H264POCContext { int ff_h264_pred_weight_table(GetBitContext *gb, const SPS *sps, const int *ref_count, int slice_type_nos, - H264PredWeightTable *pwt, void *logctx); + H264PredWeightTable *pwt, + int picture_structure, void *logctx); /** * Check if the top & left blocks are available if needed & change the |