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>
Mon, 22 Oct 2018 23:44:41 +0000 (01:44 +0200)
commit6a5b0a3c751303d359876a85913f5fbbe3976a99
tree1513c4ed99564e01449c0423ec219d1a534eef5e
parent51404bb4f6132c054c6266238d483846e6654ad3
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