diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-09-17 02:12:27 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-09-17 02:12:27 +0200 |
| commit | 4bb5e24d234dbf239119524edae4e23f39de7ee4 (patch) | |
| tree | 4f354880eb794d70ed20edde5ebba693f48092aa /src/lib | |
| parent | 66d890bf225a4edc49658803b4aa6a65031479e4 (diff) | |
| parent | 6cb56b36f627194fdfb13e306d27925b956af63f (diff) | |
Merge branch 'master' into coc-qcc
Diffstat (limited to 'src/lib')
| -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; } |
