diff options
| author | Giuseppe Baruffa <giuseppe.baruffa@unipg.it> | 2015-10-13 15:20:54 +0200 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2015-10-13 15:20:54 +0200 |
| commit | 98324bbd6baf8b664f6937efe5247d061aa49a8a (patch) | |
| tree | a28c4f9247bcd8d2a14fd0c7154f7cb27f375891 /src/lib | |
| parent | 26dcb7c1253fc38d1ff0838986dc2d87825cd194 (diff) | |
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
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openjpwl/jpwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; } |
