avformat/mov: Fix integer overflow in mov_get_stsc_samples()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Mar 2018 22:12:57 +0000 (23:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Mar 2018 19:37:33 +0000 (20:37 +0100)
commit367929bed9def1ccdd9a0f4ac5b7b98d1993782d
tree41113a44b68392c134de4616e1c20a650f1b7b42
parentc87bf5b6d0cd662c8d68672262ea5f056640206a
avformat/mov: Fix integer overflow in mov_get_stsc_samples()

Fixes: runtime error: signed integer overflow: 5 * -2147483647 cannot be represented in type 'int'
Fixes: Chromium bug 817338
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Reported-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c