Ticket #21675: patch-src_libjasper_jpc_jpc_dec.c.diff.diff
File patch-src_libjasper_jpc_jpc_dec.c.diff.diff, 688 bytes (added by adfernandes (Andrew Fernandes), 15 years ago) |
---|
-
files/patch-src_libjasper_jpc_jpc_dec.c.diff
old new 5 5 switch (tile->cp->mctid) { 6 6 case JPC_MCT_RCT: 7 7 - assert(dec->numcomps == 3); 8 + if (dec->numcomps != 3 ) {8 + if (dec->numcomps != 3 && dec->numcomps != 4) { 9 9 + jas_eprintf("dec->numcomps (%d) != 3\n", dec->numcomps); 10 10 + return -2; 11 11 + } … … 14 14 break; 15 15 case JPC_MCT_ICT: 16 16 - assert(dec->numcomps == 3); 17 + if (dec->numcomps != 3 ) {17 + if (dec->numcomps != 3 && dec->numcomps != 4) { 18 18 + jas_eprintf("dec->numcomps (%d) != 3\n", dec->numcomps); 19 19 + return -3; 20 20 + }