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>
Thu, 18 Oct 2018 00:28:54 +0000 (02:28 +0200)
commit4e19cfcfa3944fe4cf97bea758f72f104dcaebad
tree9c0613874db074d072d9ae203c519640ce9c11f6
parente90d4e92729c519e2267fce51e37713e879ef59d
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>
libavformat/utils.c