mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 17:39:56 +00:00
jpeg2000: Fix compute precedence error in lut_gain index
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
b44925ae6b
commit
4cbd5ed11b
@ -285,7 +285,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
|
|||||||
case JPEG2000_QSTY_NONE:
|
case JPEG2000_QSTY_NONE:
|
||||||
/* TODO: to verify. No quantization in this case */
|
/* TODO: to verify. No quantization in this case */
|
||||||
numbps = cbps +
|
numbps = cbps +
|
||||||
lut_gain[codsty->transform][bandno + reslevelno > 0];
|
lut_gain[codsty->transform][bandno + (reslevelno > 0)];
|
||||||
band->stepsize = (float)SHL(2048 + qntsty->mant[gbandno],
|
band->stepsize = (float)SHL(2048 + qntsty->mant[gbandno],
|
||||||
2 + numbps - qntsty->expn[gbandno]);
|
2 + numbps - qntsty->expn[gbandno]);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user