Index: libopenjpeg/tcd.c
===================================================================
--- libopenjpeg/tcd.c	(revision 490)
+++ libopenjpeg/tcd.c	(working copy)
@@ -1381,7 +1381,7 @@
 		opj_tcd_tilecomp_t *tilec = &tile->comps[compno];
 		int numres2decode;
 
-		if (tcd->cp->reduce != 0) {
+		if (tcd->cp->reduce != 0 || l == -999) {
 			tcd->image->comps[compno].resno_decoded =
 				tile->comps[compno].numresolutions - tcd->cp->reduce - 1;
 			if (tcd->image->comps[compno].resno_decoded < 0) {				
