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>
Wed, 7 Mar 2018 19:37:33 +0000 (20:37 +0100)
commit1b1362e408cd6acb63fef126b814b0d16562aa8e
tree285694f08e981bc4699037402a99cea8996dca74
parentda069e9c68ec1a54e618940dcb9ebae9bf179a32
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>
libavformat/utils.c