jpeg2000: Check that we have enough components for MCT
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 1 Jul 2013 08:01:15 +0000 (10:01 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 2 Jul 2013 18:05:45 +0000 (20:05 +0200)
commitcf04af2086be105ff86088357b83d672d38417d9
treeb0a75c9cadebc0d410e25f396bd42c7cfbe59b2a
parentb564784a207b1395d2b5a41e580539df04651096
jpeg2000: Check that we have enough components for MCT

Avoid overread.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/jpeg2000dec.c