diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-09-10 00:39:23 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-09-10 00:39:23 +0200 |
| commit | 5f02757eef51dc834401e2ba5500312a9edab95e (patch) | |
| tree | 30406c4ddfa4da2a36fb45d0a93c22c733e3e37c /src | |
| parent | 4f5ec07c315872bdee0885be085ebf57cede2db9 (diff) | |
Correct lossless issue on linux x86
Update uclouvain/openjpeg#571
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/tcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index 8f1c9410..df9272ff 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -268,7 +268,7 @@ void opj_tcd_makelayer( opj_tcd_t *tcd, n = passno + 1; continue; } - if (dd / dr >= thresh) + if (dd / dr > thresh) n = passno + 1; } @@ -565,7 +565,7 @@ OPJ_BOOL opj_tcd_rateallocate( opj_tcd_t *tcd, opj_t2_destroy(t2); } else { success = OPJ_TRUE; - goodthresh = min; + goodthresh = min - DBL_MAX; /* do not rely on float equality for lossless transform */ } if (!success) { |
