diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-06 23:52:50 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-29 22:21:31 +0300 |
commit | 0f0ad88030c4fcdc434439ee219cbe0ef12175c7 (patch) | |
tree | b3aef106403f541f82d3a2b1b5294dc36003f215 | |
parent | 1858b002dec8753caf8d5f2a080b8f4c728bfca3 (diff) |
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
-rw-r--r-- | celt/celt_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |