avformat/utils: Fix integer overflow of fps_first/last_dts
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 6 Mar 2018 23:10:11 +0000 (00:10 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Jul 2018 17:45:45 +0000 (19:45 +0200)
commitd3e6b38a413d645e76327ae9a3296793b865d896
treedbd307330880178b02b960e7a6199fc9f5985483
parent4c1d58f937c0f24b6d06bde1a7b5219055e6b4d6
avformat/utils: Fix integer overflow of fps_first/last_dts

Fixes: runtime error: signed integer overflow: 7738135736989908991 - -7898362169240453118 cannot be represented in type 'long'
Fixes: Chromium bug 796778
Reported-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1b1362e408cd6acb63fef126b814b0d16562aa8e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c