Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-28 21:51:24 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-05-29 00:16:14 +0400
commitf7129ab928b54d369add8a17ca065e7406ce4b70 (patch)
treef40fd5b84bdd47b586ba269be79542c2624990f2 /libavcodec/jpeg2000.c
parent1f1df07ce56103142aac64aa807c53b5c921ff4e (diff)
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.c2
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;