avcodec/lcldec: Check that dimensions are a multiple of the subsample factors
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 13 May 2013 16:09:04 +0000 (18:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 May 2013 23:05:59 +0000 (01:05 +0200)
commite32acc455db2e45e638a45b68984931321864956
treea82e563f6b43c154fd847cc1dc10b29f9526e165
parent6f2f754d97d9e98fa660cfab5f172983fb9b4730
avcodec/lcldec: Check that dimensions are a multiple of the subsample factors

Other dimensions would not work correctly currently,
also ask for a sample for files that fail this check.

This fixes an integer overflow leading to out of array
accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1e00bbb10cbde3da03a1e744265ce6def9ae4c56)

Conflicts:

libavcodec/lcldec.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lcldec.c