Skip to content

Commit 6f4f3e8

Browse files
committed
Disable TF analysis on tones
1 parent 86101c0 commit 6f4f3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celt/celt_encoder.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
20742074
/* Band normalisation */
20752075
normalise_bands(mode, freq, X, bandE, effEnd, C, M);
20762076

2077-
enable_tf_analysis = effectiveBytes>=15*C && !hybrid && st->complexity>=2 && !st->lfe;
2077+
enable_tf_analysis = effectiveBytes>=15*C && !hybrid && st->complexity>=2 && !st->lfe && toneishness < QCONST32(.98f, 29);
20782078

20792079
ALLOC(offsets, nbEBands, int);
20802080
ALLOC(importance, nbEBands, int);

0 commit comments

Comments
 (0)