projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b44925a
)
jpeg2000: Fix compute precedence error in lut_gain index
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 1 Jul 2013 08:01:17 +0000
(10:01 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 2 Jul 2013 18:05:45 +0000
(20:05 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/jpeg2000.c
patch
|
blob
|
history
diff --git
a/libavcodec/jpeg2000.c
b/libavcodec/jpeg2000.c
index
cd6f58d
..
b123699
100644
(file)
--- 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;