mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
j2k/jpeg2000: fix typo in lut_gain index
no testcase Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1f1df07ce5
commit
f7129ab928
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user