avformat/mov: Fix integer overflows related to sample_duration
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Mar 2018 15:43:29 +0000 (16:43 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Mar 2018 00:32:42 +0000 (01:32 +0100)
commit2f37082827a405430c40408ee2db19ea2866ce64
tree1f55fcd9c747982863eed7eff5b9515dd91b065c
parentc266049191e5230e36e610874a57673e7af0515d
avformat/mov: Fix integer overflows related to sample_duration

Fixes: runtime error: signed integer overflow: -9166684017437101870 + -2495066639299164439 cannot be represented in type

Fixes: Chromium bug 791349

Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c