From: Giuseppe Baruffa Date: Tue, 13 Oct 2015 13:20:54 +0000 (+0200) Subject: I do not recall exactly... I would say that the correct version should be X-Git-Tag: v2.1.1~22^2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98324bbd6baf8b664f6937efe5247d061aa49a8a;p=openjpeg I do not recall exactly... I would say that the correct version should be 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 --- diff --git a/src/lib/openjpwl/jpwl.c b/src/lib/openjpwl/jpwl.c index 79d0e04c..99a34990 100644 --- a/src/lib/openjpwl/jpwl.c +++ b/src/lib/openjpwl/jpwl.c @@ -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; }; }