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 09:51:59 +0000 (11:51 +0200)
commita1416c6c8d1234a53b7e52f45d7f5d613ff8cf10
treefc9374f5d88974d5ff7b0c265b54a3611a17588e
parent3e3db69193809d5c1844b0e49f9f8da181492133
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>
(cherry picked from commit f57e97dfd9539bc3f4f97a76ebc001f0b055cb88)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c