resets resno_decoded for each tile

Update #574
This commit is contained in:
mayeut 2015-10-18 18:58:54 +02:00
parent e94720fea0
commit 348e96e44b
1 changed files with 4 additions and 2 deletions

View File

@ -1433,10 +1433,12 @@ opj_bool tcd_decode_tile(opj_tcd_t *tcd, unsigned char *src, int len, int tileno
return OPJ_FALSE;
}
else {
tcd->image->comps[compno].resno_decoded =
tile->comps[compno].numresolutions - tcd->cp->reduce - 1;
tcd->image->comps[compno].resno_decoded = tile->comps[compno].numresolutions - tcd->cp->reduce - 1;
}
}
else {
tcd->image->comps[compno].resno_decoded = tile->comps[compno].numresolutions - 1;
}
numres2decode = tcd->image->comps[compno].resno_decoded + 1;
if(numres2decode > 0){