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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commite89d8ed7cb3fc0dd1e108a5919b2c6f4f454fe60
tree7cf594e3ea91c4de648ef75daea7c733e6b7e2f8
parentfef832c188c07245c7b9a44432a89f49a4c0d2ff
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