jpeg2000dec: Check ncomponents and tile dimensions
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 21 May 2013 19:36:32 +0000 (21:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 May 2013 19:44:34 +0000 (21:44 +0200)
commit069ede29811685ed7b2cf958471eee455aab2077
tree5e57c193affc793ae77b7c38ebae339327e7ccc9
parent78c7bff04ac5180b47e739edbe015ff6b11bf0b9
jpeg2000dec: Check ncomponents and tile dimensions

Fixes various problems

Code ported from j2kdec

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