Skip to content

Commit

Permalink
Disable TF analysis on tones
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Sep 21, 2024
1 parent 729ebc0 commit 3e96e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celt/celt_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
/* 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);
Expand Down

0 comments on commit 3e96e02

Please sign in to comment.