diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2015-09-10 15:10:14 +0200 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2015-09-10 15:10:14 +0200 |
| commit | ccdce606f1baa945e5c717064bc17e8218b7cb29 (patch) | |
| tree | ed3150866a03751e56eb7e9138bc6c213eb6d825 /src/lib | |
| parent | d7d9f84707a8a93a393666fafedd7b77c59eff37 (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.c | 2 |
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) { |
