jpeg2000dec: Check compno in get_coc()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Jun 2013 23:54:30 +0000 (01:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 13 Jun 2013 23:55:43 +0000 (01:55 +0200)
commite850a064cee3c291d8e122a6284bb0ea1a59787f
treef29afd4382111c504eb61c4bdae2b18f47ce11f3
parent852f74bd859da374898d865502576bd5e7a75f48
jpeg2000dec: Check compno in get_coc()

Fixes out of array accesses

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