avformat/utils: Check cur_dts in update_initial_timestamps() more
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Apr 2018 09:38:48 +0000 (11:38 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Jul 2018 17:45:46 +0000 (19:45 +0200)
commitbb6146ca6d66459254b5e332f258d3e9a72a20ea
tree94b49d554591697b07ca1ffc27713ef168a4f5df
parent1fbd13ebe529ef6e17bb66f2216271d933c70c39
avformat/utils: Check cur_dts in update_initial_timestamps() more

Fixes: runtime error: signed integer overflow: 18133149658382192 - -9223090561878065151 cannot be represented in type 'long long'
Fixes: crbug 831552

Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 37d46dc21d708192b12aa13617ebe6a117b07363)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c