From 2720a1a405ffcc8e1c157da718701266e725e1dd Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Mon, 29 Sep 2014 12:03:36 +0000 Subject: [PATCH] [trunk] fixed tile numbering in output message (fixes issue 370) --- src/lib/openjp2/j2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index f4d58c08..b794dc39 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -7750,7 +7750,7 @@ OPJ_BOOL opj_j2k_read_tile_header( opj_j2k_t * p_j2k, } opj_event_msg(p_manager, EVT_INFO, "Header of tile %d / %d has been read.\n", - p_j2k->m_current_tile_number, (p_j2k->m_cp.th * p_j2k->m_cp.tw) - 1); + p_j2k->m_current_tile_number+1, (p_j2k->m_cp.th * p_j2k->m_cp.tw)); *p_tile_index = p_j2k->m_current_tile_number; *p_go_on = OPJ_TRUE;