fftools/ffmpeg: Fallback to duration if sample rate is unavailable
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 May 2018 20:44:07 +0000 (22:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jun 2018 16:55:45 +0000 (18:55 +0200)
commit16d8b13b3b26c19d7f8856e039fe6662d96b4ff3
tree5b4f54a7c7cb80209541f03e6d3225b0b7ab1ccb
parent8176799f31b23849382623f0f9001acc5edf7c76
fftools/ffmpeg: Fallback to duration if sample rate is unavailable

Regression since: af1761f7
Fixes: Division by 0
Fixes: ffmpeg_crash_1

Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c