summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2015-09-10 15:10:14 +0200
committerMatthieu Darbois <mayeut@users.noreply.github.com>2015-09-10 15:10:14 +0200
commitccdce606f1baa945e5c717064bc17e8218b7cb29 (patch)
treeed3150866a03751e56eb7e9138bc6c213eb6d825 /src/lib
parentd7d9f84707a8a93a393666fafedd7b77c59eff37 (diff)
Fix threshold calculation
It doesn't change the outcome of the test suite, that's weird...
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/openjp2/tcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c
index df9272ff..d227e388 100644
--- a/src/lib/openjp2/tcd.c
+++ b/src/lib/openjp2/tcd.c
@@ -565,7 +565,7 @@ OPJ_BOOL opj_tcd_rateallocate( opj_tcd_t *tcd,
opj_t2_destroy(t2);
} else {
success = OPJ_TRUE;
- goodthresh = min - DBL_MAX; /* do not rely on float equality for lossless transform */
+ goodthresh = min - DBL_EPSILON; /* do not rely on float equality for lossless transform */
}
if (!success) {