You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
jpeg2000: Fix compute precedence error in lut_gain index
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
b44925ae6b
commit
4cbd5ed11b
@@ -285,7 +285,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
|
||||
case JPEG2000_QSTY_NONE:
|
||||
/* TODO: to verify. No quantization in this case */
|
||||
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;
|
||||
|
Reference in New Issue
Block a user