Correct anti_collapse in the decoder to handle the stereo

to mono state transition in the same manner as the encoder.
This commit is contained in:
Gregory Maxwell 2011-08-12 14:22:16 -04:00
parent f9b1b3fec8
commit b288c5078a

View file

@ -2534,7 +2534,7 @@ int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char *da
fine_quant, fine_priority, len*8-ec_tell(dec), dec, C); fine_quant, fine_priority, len*8-ec_tell(dec), dec, C);
if (anti_collapse_on) if (anti_collapse_on)
anti_collapse(st->mode, X, collapse_masks, LM, C, C, N, anti_collapse(st->mode, X, collapse_masks, LM, C, CC, N,
st->start, st->end, oldBandE, oldLogE, oldLogE2, pulses, st->rng); st->start, st->end, oldBandE, oldLogE, oldLogE2, pulses, st->rng);
log2Amp(st->mode, st->start, st->end, bandE, oldBandE, C); log2Amp(st->mode, st->start, st->end, bandE, oldBandE, C);