From 68e596dada2ee38a66b01494e5a425e623688300 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 21 Sep 2017 13:54:14 +0200 Subject: [PATCH] Fix copy&paste error (Coverity CID 169394) --- 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 36d4e947..cda722b4 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -9301,7 +9301,7 @@ OPJ_BOOL opj_j2k_set_decode_area(opj_j2k_t *p_j2k, } /* Up */ - if (p_start_x < 0) { + if (p_start_y < 0) { opj_event_msg(p_manager, EVT_ERROR, "Up position of the decoded area (region_y0=%d) should be >= 0.\n", p_start_y);