aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-02-19 03:42:18 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-02-19 03:42:18 -0500
commit69c3dcd105432a72220478cbde851cc7917e5768 (patch)
treeb2aafb6f7df64881e9cd99fba2851f90b91c6f3d
parent3ecd9c20cbc77e83dfd83c3d2e8e0640a5b50bba (diff)
downloadlibopus-69c3dcd105432a72220478cbde851cc7917e5768.tar.gz
Fixes a bug introduced in 851f803
-rw-r--r--celt/celt_encoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c
index fb33cb62..96a9f6fe 100644
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1380,6 +1380,8 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
}
compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample);
+ if (CC==2&&C==1)
+ tf_chan = 0;
compute_band_energies(mode, freq, bandE, effEnd, C, M);
amp2Log2(mode, effEnd, st->end, bandE, bandLogE, C);