[trunk] This fixes issues seen on PDF files

Fixes issue 156
This commit is contained in:
Mathieu Malaterre
2012-07-11 14:55:39 +00:00
parent 178236cc5f
commit 5ba8d36687
2 changed files with 17 additions and 6 deletions

View File

@@ -796,6 +796,12 @@ void tcd_malloc_decode_tile(opj_tcd_t *tcd, opj_image_t * image, opj_cp_t * cp,
opj_tccp_t *tccp = &tcp->tccps[compno];
opj_tcd_tilecomp_t *tilec = &tile->comps[compno];
if (tccp->numresolutions <= 0)
{
cp->tileno[tileno] = -1;
return;
}
/* border of each tile component (global) */
tilec->x0 = int_ceildiv(tile->x0, image->comps[compno].dx);
tilec->y0 = int_ceildiv(tile->y0, image->comps[compno].dy);