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, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit30d40580c4e0a42eba5e79a29fbad5ae09a78948
treeb059607410418b21840f283781017df94bf2e2df
parentad7c57f9db506cc0c6c3b8e36a14d8e00df0dcfe
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>
(cherry picked from commit 2f37082827a405430c40408ee2db19ea2866ce64)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c