fftools/ffmpeg: Fix integer overflow in duration computation in seek_to_start()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Feb 2020 21:56:18 +0000 (22:56 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Feb 2020 14:13:20 +0000 (15:13 +0100)
commit4f4ad33d96a01d82edf56d58599017cb0ae5bfa8
tree20885282da99fe79bec022926f870480a7523b8b
parent0c0ca0f244b823238e5a4f5584168e620da84899
fftools/ffmpeg: Fix integer overflow in duration computation in seek_to_start()

Fixes: signed integer overflow: -9223372036854775808 - 9223372036854775807 cannot be represented in type 'long'
Fixes: Ticket8142

Found-by: Suhwan
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c