Fix threshold calculation
It doesn't change the outcome of the test suite, that's weird...
This commit is contained in:
parent
d7d9f84707
commit
ccdce606f1
|
@ -565,7 +565,7 @@ OPJ_BOOL opj_tcd_rateallocate( opj_tcd_t *tcd,
|
||||||
opj_t2_destroy(t2);
|
opj_t2_destroy(t2);
|
||||||
} else {
|
} else {
|
||||||
success = OPJ_TRUE;
|
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) {
|
if (!success) {
|
||||||
|
|
Loading…
Reference in New Issue