Our old crashfixes for OpenJPEG

This commit is contained in:
Siana Gearz
2011-04-06 04:54:04 +02:00
parent ad4d974812
commit 753c0b9285
2 changed files with 21 additions and 3 deletions

View File

@@ -1407,6 +1407,11 @@ bool tcd_decode_tile(opj_tcd_t *tcd, unsigned char *src, int len, int tileno, op
}
}
if(!tilec->data) {
opj_event_msg(tcd->cinfo, EVT_ERROR, "Error decoding tile. null data\n");
return false;
}
numres2decode = tcd->image->comps[compno].resno_decoded + 1;
if(numres2decode > 0){
if (tcd->tcp->tccps[compno].qmfbid == 1) {