From b288c5078adaa364c01c078f17b2c916517056e7 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Fri, 12 Aug 2011 14:22:16 -0400
Subject: [PATCH] Correct anti_collapse in the decoder to handle the stereo to
 mono state transition in the same manner as the encoder.

---
 libcelt/celt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcelt/celt.c b/libcelt/celt.c
index bbd8ca10d..f06a20692 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -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);
 
    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);
-- 
GitLab