diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-02-28 15:27:30 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-02-28 15:27:30 +0000 |
| commit | cf91ebf2788f3df4391cc6ace557248bcb45acfb (patch) | |
| tree | 516e6330c9bf7d7fe7b923c337d909b7cc25ddbf /src/lib | |
| parent | fd5f21af0077d59160cdab83e5ea01022313ca5e (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.c | 2 |
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*/ } } |
