diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index ede3107b..7380c4bd 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -586,8 +586,9 @@ OPJ_BOOL opj_tcd_rateallocate(opj_tcd_t *tcd, if (distoachieved < distotarget) { hi = thresh; - if (distoachieved > DBL_EPSILON) - stable_thresh = thresh; + if (distoachieved > DBL_EPSILON) { + stable_thresh = thresh; + } continue; } else { lo = thresh; @@ -599,8 +600,9 @@ OPJ_BOOL opj_tcd_rateallocate(opj_tcd_t *tcd, if (distoachieved < distotarget) { hi = thresh; - if (distoachieved > DBL_EPSILON) - stable_thresh = thresh; + if (distoachieved > DBL_EPSILON) { + stable_thresh = thresh; + } continue; } lo = thresh;