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>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commita1f4fe165a4063433d1f0472b3ed5dbf15130b96
treed10c2d09856102c5ecadffe068c50a4b08da2029
parent1e59d05e48f9e12aa50a3ad89d6a78c281997a6f
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>
(cherry picked from commit 079d1a7175c4b881631a7e7f449c4c13b761cdeb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c