Fix copy&paste error (Coverity CID 169394)
authorEven Rouault <even.rouault@spatialys.com>
Thu, 21 Sep 2017 11:54:14 +0000 (13:54 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Thu, 21 Sep 2017 11:54:14 +0000 (13:54 +0200)
src/lib/openjp2/j2k.c

index 36d4e94774fea7cedea9c207e3215473bdf1138d..cda722b46c65d23bf4c7eae7d59a06f5789c871b 100644 (file)
@@ -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);