mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
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>
This commit is contained in:
parent
45db921806
commit
44327cbc9a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user