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>
Sun, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commit77d35ab73435a9c847f387621f066c1f98733580
tree615ebc4ca849288d916357a28bdff5a1afe2dded
parent9181ecd2e60285136f77c655d87ec7538cdfded1
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