From: Matthieu Darbois Date: Thu, 10 Sep 2015 13:10:14 +0000 (+0200) Subject: Fix threshold calculation X-Git-Tag: v2.1.1~22^2~62^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccdce606f1baa945e5c717064bc17e8218b7cb29;p=openjpeg Fix threshold calculation It doesn't change the outcome of the test suite, that's weird... --- 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) {