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, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit83260729955b9249599a23be5f9ad4e9051db002
tree98b18c228d90c9986054a3c01036e2b727a85fb0
parented4e35a0fdef551041a2d0e412e90321dbd6bf3e
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