avcodec/mss2: Fix integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 18:29:44 +0000 (20:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 18:30:48 +0000 (20:30 +0200)
commitce81e47c911fcff4f006b3b14b40a396eaa77696
treee46719e297d363bc35fee93d7b44e81116545648
parentf8e038f9a07d9539e7ffa23dc9f7505dc15c8fa2
avcodec/mss2: Fix integer overflow

This also simplifies the code
Fixes: signal_sigabrt_7ffff6ac8cc9_2943_cov_3588637614_mss2_speech.wmv

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