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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit963915a4b416e944c8f01bc3d635d6b64d8b0022
treee88bd632acdce93cf799cb4e5f1b85f68cb5b9c3
parentff75dc10fd27d97b789f6d8df179e6f82580c586
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>
(cherry picked from commit 16d8b13b3b26c19d7f8856e039fe6662d96b4ff3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c