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>
Fri, 13 Apr 2018 21:10:00 +0000 (23:10 +0200)
commitd4b5ffeb57f28196c263fa228019aa6d2956476a
tree33dc4d3a4f9a303505a84a67d4a653bb6eb77acd
parentb8ef20becf92cec9736eacb4c8cb2e9abfea6a3d
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