avformat/utils: Fix integer overflow in discontinuity check
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Oct 2018 01:00:32 +0000 (03:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commit1e59d05e48f9e12aa50a3ad89d6a78c281997a6f
treeb3b882212aa616f8f9a2f07beefeb47c3d5e540e
parenta9ce7cfc594916d55958a9e776104ad70a81fea5
avformat/utils: Fix integer overflow in discontinuity check

Fixes: signed integer overflow: 7738135736989908991 - -7954308516317364223 cannot be represented in type 'long'
Fixes: find_stream_info_usan

Reported-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4e19cfcfa3944fe4cf97bea758f72f104dcaebad)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c