diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-09 16:30:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-09 16:44:32 +0200 |
commit | 44327cbc9a8c8f766e7e3f567b647b68c89d16bd (patch) | |
tree | dd4f6fdc9739033ac4323e204a0dfe03e8f786c2 | |
parent | 45db92180693b0a4663bc4c30ada0af1da041558 (diff) | |
download | ffmpeg-44327cbc9a8c8f766e7e3f567b647b68c89d16bd.tar.gz |
avcodec/jpeg2000: Disable special case for JPEG2000_QSTY_SI
The code gave apparently completely wrong values
Fixes Ticket2872
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/jpeg2000.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 770dffb422..1717bc31b5 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -293,11 +293,11 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, break; case JPEG2000_QSTY_SI: /*TODO: Compute formula to implement. */ - numbps = cbps + - lut_gain[codsty->transform == FF_DWT53][bandno + (reslevelno > 0)]; - band->f_stepsize = SHL(2048 + qntsty->mant[gbandno], - 2 + numbps - qntsty->expn[gbandno]); - break; +// numbps = cbps + +// lut_gain[codsty->transform == FF_DWT53][bandno + (reslevelno > 0)]; +// band->f_stepsize = SHL(2048 + qntsty->mant[gbandno], +// 2 + numbps - qntsty->expn[gbandno]); +// break; case JPEG2000_QSTY_SE: /* Exponent quantization step. * Formula: |