avformat/utils: Check timebase before use in estimate_timings()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 21:23:25 +0000 (23:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 07:56:09 +0000 (09:56 +0200)
commitf57e97dfd9539bc3f4f97a76ebc001f0b055cb88
treecba55d8ae871a77805abf0666f6de926eb14bc54
parenta6229fcd405d4135848c83df73634871260de59c
avformat/utils: Check timebase before use in estimate_timings()

Fixes: division by 0
Fixes: 15480/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5746727434321920

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