Fix threshold calculation

It doesn't change the outcome of the test suite, that's weird...
This commit is contained in:
Matthieu Darbois 2015-09-10 15:10:14 +02:00
parent d7d9f84707
commit ccdce606f1
1 changed files with 1 additions and 1 deletions

View File

@ -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) {