avformat/tty: Fix division by 0 in probe
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Feb 2020 21:22:30 +0000 (22:22 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Feb 2020 22:33:18 +0000 (23:33 +0100)
commit87d54a62396830eff232051ac38b5c273ca2e38a
tree7ce08bc77c857732c6dc8b2e33ccf6ee783cdfbe
parentc9c958051cc91604b9427229d648e65e782476d4
avformat/tty: Fix division by 0 in probe

Fixes: division by zero
Fixes: 20436/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5763229752229888
Fixes: 20503/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4841641154445312

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/tty.c