diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-28 19:51:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-28 22:16:14 +0200 |
commit | f7129ab928b54d369add8a17ca065e7406ce4b70 (patch) | |
tree | f40fd5b84bdd47b586ba269be79542c2624990f2 /libavcodec/j2k.c | |
parent | 1f1df07ce56103142aac64aa807c53b5c921ff4e (diff) |
j2k/jpeg2000: fix typo in lut_gain index
no testcase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/j2k.c')
-rw-r--r-- | libavcodec/j2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2k.c b/libavcodec/j2k.c index 7da05a8701..96fe2597cb 100644 --- a/libavcodec/j2k.c +++ b/libavcodec/j2k.c @@ -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; |