diff --git a/CHANGES b/CHANGES index 8a198329..ef65fd37 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ What's New for OpenJPEG + : added October 07, 2011 +* [mickael] WIP: correct mistake inside set_decoded_area function (credit to Francois De Vieilleville) + [mickael] WIP: backport rev 967-969 from opj-1.5 to trunk about test suite enhancement and rename of opj_configh.cmake.in October 06, 2011 diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index 5cd36310..6d5b24e8 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -6085,7 +6085,7 @@ opj_bool j2k_set_decode_area( opj_j2k_v2_t *p_j2k, p_j2k->m_specific_param.m_decoder.m_end_tile_x = int_ceildiv((p_end_x - l_cp->tx0), l_cp->tdx); /* Bottom */ - if (p_end_x < l_cp->ty0) { + if (p_end_y < l_cp->ty0) { opj_event_msg_v2(p_manager, EVT_ERROR, "Right position of the decoded area (ROI_y1=%d) is outside the tile area (YTOsiz=%d).\n", p_end_x, l_cp->ty0);