summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-28 15:27:30 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-28 15:27:30 +0000
commitcf91ebf2788f3df4391cc6ace557248bcb45acfb (patch)
tree516e6330c9bf7d7fe7b923c337d909b7cc25ddbf /src/lib
parentfd5f21af0077d59160cdab83e5ea01022313ca5e (diff)
[trunk] Re-import chunk from r2458 that made textGBR.jp2 to fail otherwise
Update issue 225
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/openjp2/j2k.c2
1 files changed, 1 insertions, 1 deletions
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*/
}
}