jpeg2000: check that nreslevels2decode has been initialized before use
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Jun 2013 16:04:20 +0000 (18:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Jun 2013 16:34:07 +0000 (18:34 +0200)
commit6e9bfc19bd7be2b28258ca93d706cb67ed482c65
treeaa4f8e06b973e0f1ce4d0eb5f3c7f19da288c2cd
parent16f3102f41031f70a24cf25836b1b7ab972c1265
jpeg2000: check that nreslevels2decode has been initialized before use

Fixes out of array accesses

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