diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-14 23:01:06 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-14 23:01:06 +0400 |
commit | 90bac9d148286776180e38be3549cb8ff9ec0674 (patch) | |
tree | eb7bed53c13a935ba59e90ba3f2e88f07afe7fab /celt | |
parent | 28ef277db4d82673a5639b2b6b933ea2af92c379 (diff) |
Minor tuining of complexity thresholds
Diffstat (limited to 'celt')
-rw-r--r-- | celt/celt_encoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index 72ce4e9c..fe3d2b1e 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -1296,7 +1296,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, shortBlocks = 0; if (LM>0 && ec_tell(enc)+3<=total_bits) { - if (st->complexity > 1) + if (st->complexity >= 1) { isTransient = transient_analysis(in, N+st->overlap, CC, &tf_estimate, &tf_chan); @@ -1376,7 +1376,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, ALLOC(tf_res, nbEBands, int); /* Disable variable tf resolution for hybrid and at very low bitrate */ - if (effectiveBytes>=15*C && st->start==0) + if (effectiveBytes>=15*C && st->start==0 && st->complexity>=2) { int lambda; if (effectiveBytes<40) |