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>
Mon, 9 Jul 2018 23:18:52 +0000 (01:18 +0200)
commit4bcfe9f19c8edf469158e0da6ef8d6e3ba6eec28
treedc85a99701381e408962db1020453f1feb924053
parent5279e865961f6eb7bf05c46c6c59835000f5bd50
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