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 27, 2024
1 parent a4bb3b1 commit eb5e241
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 eb5e241

Please sign in to comment.