summaryrefslogtreecommitdiff
path: root/libopenjpeg/dwt.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2006-10-31 17:11:15 +0000
committerAntonin Descampe <antonin@gmail.com>2006-10-31 17:11:15 +0000
commit2d416a80179294b30d97049333a5ccd9c044ea71 (patch)
tree5cc62331cbe1591fa297bf45f519c98d4ced6b1b /libopenjpeg/dwt.c
parentb565431251c607fe58fda307794bf09399b2681c (diff)
fixed a bug in the computation of the mantissa (mu)
Diffstat (limited to 'libopenjpeg/dwt.c')
-rw-r--r--libopenjpeg/dwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/dwt.c b/libopenjpeg/dwt.c
index 702bf6cf..88527d67 100644
--- a/libopenjpeg/dwt.c
+++ b/libopenjpeg/dwt.c
@@ -603,7 +603,7 @@ void dwt_calc_explicit_stepsizes(opj_tccp_t * tccp, int prec) {
stepsize = 1.0;
} else {
double norm = dwt_norms_real[orient][level];
- stepsize = (1 << (gain + 1)) / norm;
+ stepsize = (1 << (gain)) / norm;
}
dwt_encode_stepsize((int) floor(stepsize * 8192.0), prec + gain, &tccp->stepsizes[bandno]);
}