Commit 92d2492b authored by Jean-Marc Valin's avatar Jean-Marc Valin

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
parent cc344b01
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment