avformat/bfi: check nframes
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Apr 2021 17:33:58 +0000 (19:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Jul 2021 20:08:19 +0000 (22:08 +0200)
commitb4e77dfca1c2970446f79277034d8e60c3fe3f4e
treeb2325cacf45587138400da7f3a8f06f39af47488
parent527821a2dd6f19d9a4d2abe05833346ae86c66c6
avformat/bfi: check nframes

Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_BFI_fuzzer-6737028768202752

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