ref: 6f4f3e89c7dfef574f989ac0db1a51b63ed8b987
parent: 86101c0e84d7c92685ee02541e34623d3fbe0912
author: Jean-Marc Valin <jeanmarcv@google.com>
date: Fri Jun 28 15:54:54 EDT 2024
Disable TF analysis on tones
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -2074,7 +2074,7 @@
/* Band normalisation */
normalise_bands(mode, freq, X, bandE, effEnd, C, M);
- enable_tf_analysis = effectiveBytes>=15*C && !hybrid && st->complexity>=2 && !st->lfe;
+ enable_tf_analysis = effectiveBytes>=15*C && !hybrid && st->complexity>=2 && !st->lfe && toneishness < QCONST32(.98f, 29);
ALLOC(offsets, nbEBands, int);
ALLOC(importance, nbEBands, int);
--
⑨