2c4e85
diff -urN jasper-1.900.1/src/libjasper/jpc/jpc_dec.c jasper-1.900.1-fix/src/libjasper/jpc/jpc_dec.c
2c4e85
--- jasper-1.900.1/src/libjasper/jpc/jpc_dec.c	2007-01-19 14:43:07.000000000 -0700
2c4e85
+++ jasper-1.900.1-fix/src/libjasper/jpc/jpc_dec.c	2008-03-06 16:51:12.000000000 -0700
2c4e85
@@ -1069,12 +1069,12 @@
2c4e85
 	/* Apply an inverse intercomponent transform if necessary. */
2c4e85
 	switch (tile->cp->mctid) {
2c4e85
 	case JPC_MCT_RCT:
2c4e85
-		assert(dec->numcomps == 3);
2c4e85
+		assert(dec->numcomps >= 3);
2c4e85
 		jpc_irct(tile->tcomps[0].data, tile->tcomps[1].data,
2c4e85
 		  tile->tcomps[2].data);
2c4e85
 		break;
2c4e85
 	case JPC_MCT_ICT:
2c4e85
-		assert(dec->numcomps == 3);
2c4e85
+		assert(dec->numcomps >= 3);
2c4e85
 		jpc_iict(tile->tcomps[0].data, tile->tcomps[1].data,
2c4e85
 		  tile->tcomps[2].data);
2c4e85
 		break;