shithub: opus

Download patch

ref: b288c5078adaa364c01c078f17b2c916517056e7
parent: f9b1b3fec85aab07db668b697fa700a94d7f75aa
author: Gregory Maxwell <[email protected]>
date: Fri Aug 12 10:22:16 EDT 2011

Correct anti_collapse in the decoder to handle the stereo
to mono state transition in the same manner as the encoder.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -2534,7 +2534,7 @@
          fine_quant, fine_priority, len*8-ec_tell(dec), dec, C);
 
    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);
 
    log2Amp(st->mode, st->start, st->end, bandE, oldBandE, C);