avcodec/utils: Use 64bit for aspect ratio calculation in avcodec_string()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Nov 2015 16:26:05 +0000 (17:26 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Dec 2015 01:08:25 +0000 (02:08 +0100)
commit6e28d0d0475f986eeaac307a433a60aa1a442b67
tree87c771cf0d69d284600e9e432fa1a7c6d359e736
parent2b9e849c37124ce571c8697a10b6b6124c4c2840
avcodec/utils: Use 64bit for aspect ratio calculation in avcodec_string()

Fixes integer overflow
Fixes: 3a45b2ae02f2cf12b7bd99543cdcdae5/asan_heap-oob_1dff502_8022_899f75e1e81046ebd7b6c2394a1419f4.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4f03bebc79f76df3a3e5bb9e1bc32baabfb7797c)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c