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/jpeg2000.c | |
parent | 1f1df07ce56103142aac64aa807c53b5c921ff4e (diff) | |
download | ffmpeg-f7129ab928b54d369add8a17ca065e7406ce4b70.tar.gz |
j2k/jpeg2000: fix typo in lut_gain index
no testcase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 c5fc35dbd1..626a157d72 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -272,7 +272,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; |