avcodec/cbs_h264_syntax_template: fix off by 1 error with slice_group_change_cycle
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Mar 2020 15:38:24 +0000 (16:38 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Apr 2020 21:18:55 +0000 (23:18 +0200)
commit741565a1e69c45ce4848f01e45be5e66a68efa2f
tree2ac8dfe7140e06efef576bd704243d0c960f5e61
parent8defd0ca7b4ac6658e6beb9dcdc0183b2d3e53d8
avcodec/cbs_h264_syntax_template: fix off by 1 error with slice_group_change_cycle

Fixes: assertion failure
Fixes: 20390/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_REDUNDANT_PPS_fuzzer-5683400772157440

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