From: Mathieu Malaterre Date: Fri, 28 Feb 2014 15:27:30 +0000 (+0000) Subject: [trunk] Re-import chunk from r2458 that made textGBR.jp2 to fail otherwise X-Git-Tag: version.2.0.1~4^2~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf91ebf2788f3df4391cc6ace557248bcb45acfb;p=openjpeg [trunk] Re-import chunk from r2458 that made textGBR.jp2 to fail otherwise Update issue 225 --- diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index 9637b552..7485e752 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -4030,7 +4030,7 @@ OPJ_BOOL opj_j2k_read_sot ( opj_j2k_t *p_j2k, /* If know the number of tile part header we will check if we didn't read the last*/ if (l_tcp->m_nb_tile_parts) { - if (l_tcp->m_nb_tile_parts == l_current_part) { + if (l_tcp->m_nb_tile_parts == (l_current_part+1)) { p_j2k->m_specific_param.m_decoder.m_can_decode = 1; /* Process the last tile-part header*/ } }