diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-01 12:01:17 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-02 22:05:45 +0400 |
commit | 4cbd5ed11b0161a6a192174934b241e0cc0599a9 (patch) | |
tree | fdfa21aeffb91dc698e2422f927d4f6b9dbb0e61 /libavcodec/jpeg2000.c | |
parent | b44925ae6b4bb7b9409053265005d9acada82057 (diff) |
jpeg2000: Fix compute precedence error in lut_gain index
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/jpeg2000.c')
-rw-r--r-- | libavcodec/jpeg2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index cd6f58de0e..b1236993ac 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -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; |