avformat/utils: Never store negative values in last_IP_duration
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Oct 2018 18:55:25 +0000 (20:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 Oct 2018 00:28:54 +0000 (02:28 +0200)
commit079d1a7175c4b881631a7e7f449c4c13b761cdeb
treea74dec7fa7b3908e5330e5a7fc5490891acac69a
parent4e19cfcfa3944fe4cf97bea758f72f104dcaebad
avformat/utils: Never store negative values in last_IP_duration

Fixes: integer overflow compute_pkt_fields()
Fixes: compute_pkt_usan

Reported-by: Thomas Guilbert <tguilbert@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c