I do not recall exactly... I would say that the correct version should be
authorGiuseppe Baruffa <giuseppe.baruffa@unipg.it>
Tue, 13 Oct 2015 13:20:54 +0000 (15:20 +0200)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 13 Oct 2015 13:20:54 +0000 (15:20 +0200)
if (!JPWL_ASSUME)
    return false;

meaning that once JPWL_ASSUME=1 the code will pass over such errors and try to decode anyway (just paired with the other JPWL_ASSUME on line 1112).

Fixes #596

src/lib/openjpwl/jpwl.c

index 79d0e04c607497e40f4b66bf9da85697ed6a3250..99a34990fbd3759caf6e4cdfc9e4ed07325bc53a 100644 (file)
@@ -1296,7 +1296,7 @@ opj_bool jpwl_check_tile(opj_j2k_t *j2k, opj_tcd_t *tcd, int tileno) {
                                                         opj_event_msg(j2k->cinfo, JPWL_ASSUME ? EVT_WARNING : EVT_ERROR,
                                                                 "JPWL: wrong x-cord of block origin %d => x-prec is (%d, %d)\n",
                                                                 block->x0, prec->x0, prec->x1);
-                                                        if (!JPWL_ASSUME || JPWL_ASSUME)
+                                                        if (!JPWL_ASSUME)
                                                                 return OPJ_FALSE;
                                                 };
                                         }