diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2015-09-11 14:39:43 +0200 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2015-09-11 14:39:43 +0200 |
| commit | 5d953558de8dc4d939b8147fe9547533a8804297 (patch) | |
| tree | 42991818754628780962ad2d163ad1f8f63f8a7c /src | |
| parent | 4f5ec07c315872bdee0885be085ebf57cede2db9 (diff) | |
| parent | bac2c9e0a37a79a35e39cbe18572ec40bcfc3f29 (diff) | |
Merge pull request #579 from mayeut/lossless
Correct lossless issue on linux x86
Fix #571
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/tcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index 8f1c9410..2fccff1c 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 (thresh - (dd / dr) < DBL_EPSILON) /* do not rely on float equality, check with DBL_EPSILON margin */ n = passno + 1; } |
