j2k/jpeg2000: fix typo in lut_gain index

no testcase

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-05-28 19:51:24 +02:00
parent 1f1df07ce5
commit f7129ab928
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ int ff_j2k_init_component(Jpeg2000Component *comp,
case JPEG2000_QSTY_SI:
/*TODO: Compute formula to implement. */
numbps = cbps +
lut_gain[codsty->transform][bandno + reslevelno > 0];
lut_gain[codsty->transform][bandno + (reslevelno > 0)];
stepsize = SHL(2048 + qntsty->mant[gbandno],
2 + numbps - qntsty->expn[gbandno]);
break;

View File

@ -272,7 +272,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
case JPEG2000_QSTY_SI:
/*TODO: Compute formula to implement. */
numbps = cbps +
lut_gain[codsty->transform][bandno + reslevelno > 0];
lut_gain[codsty->transform][bandno + (reslevelno > 0)];
band->stepsize = (float)SHL(2048 + qntsty->mant[gbandno],
2 + numbps - qntsty->expn[gbandno]);
break;