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 16:52:00 +0000 (18:52 +0200)
commit1e00bbb10cbde3da03a1e744265ce6def9ae4c56
tree52a9802dbf51e11fcccd65b862b55b12bf666c0d
parentb3c263e20925628eabf785afae5a9d7cc5d8bb4d
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>
libavcodec/lcldec.c