avformat/mov: Check dimensions before setting aspect
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2015 13:51:03 +0000 (14:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2015 13:52:15 +0000 (14:52 +0100)
commit5763f675024765df8f256d8b5b01926a5fbd997d
tree183ba69a9ac8d4e88d251bd79f51104aea436976
parentb74ecb82fa51aba52a95992668546afe8ed2bd9f
avformat/mov: Check dimensions before setting aspect

Fixes division by 0
Fixes: asan_heap-uaf_143f420_728_cov_1441472032_HDV_0113.MP4

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c