From: Michael Niedermayer <[email protected]> no testcase
Signed-off-by: Michael Niedermayer <[email protected]> Conflicts: libavcodec/j2k.c --- libavcodec/jpeg2000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 29f44b3..3332092 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -284,7 +284,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; -- 1.8.2.1 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
