shithub: opus

Download patch

ref: 92d2492bfdbea8267faf0e6a6fbba09a5ffa7b1c
parent: cc344b019d5c79854282d22ca1fa80d6ecbd763b
author: Jean-Marc Valin <[email protected]>
date: Mon Jun 6 12:52:50 EDT 2016

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

--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1731,7 +1731,7 @@
 
    /* 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))
       {