update tcd.c to fix issue #1033
This commit is contained in:
parent
b7f042f431
commit
9bbbdccc89
|
@ -586,8 +586,9 @@ OPJ_BOOL opj_tcd_rateallocate(opj_tcd_t *tcd,
|
||||||
|
|
||||||
if (distoachieved < distotarget) {
|
if (distoachieved < distotarget) {
|
||||||
hi = thresh;
|
hi = thresh;
|
||||||
if (distoachieved > DBL_EPSILON)
|
if (distoachieved > DBL_EPSILON) {
|
||||||
stable_thresh = thresh;
|
stable_thresh = thresh;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
lo = thresh;
|
lo = thresh;
|
||||||
|
@ -599,8 +600,9 @@ OPJ_BOOL opj_tcd_rateallocate(opj_tcd_t *tcd,
|
||||||
|
|
||||||
if (distoachieved < distotarget) {
|
if (distoachieved < distotarget) {
|
||||||
hi = thresh;
|
hi = thresh;
|
||||||
if (distoachieved > DBL_EPSILON)
|
if (distoachieved > DBL_EPSILON) {
|
||||||
stable_thresh = thresh;
|
stable_thresh = thresh;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
lo = thresh;
|
lo = thresh;
|
||||||
|
|
Loading…
Reference in New Issue