From 92d2492bfdbea8267faf0e6a6fbba09a5ffa7b1c Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 6 Jun 2016 16:52:50 -0400 Subject: Disable patch_transient_decision() on hybrid since it's causing artifacts It would trigger on the second frame of "S"s, causing holes in the spectrum --- celt/celt_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index 7c949ccb..98cf4a88 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -1731,7 +1731,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, /* Last chance to catch any transient we might have missed in the time-domain analysis */ - if (LM>0 && ec_tell(enc)+3<=total_bits && !isTransient && st->complexity>=5 && !st->lfe) + if (LM>0 && ec_tell(enc)+3<=total_bits && !isTransient && st->complexity>=5 && !st->lfe && !hybrid) { if (patch_transient_decision(bandLogE, oldBandE, nbEBands, start, end, C)) { -- cgit v1.2.1