Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-12-14 23:01:06 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-12-14 23:01:06 +0400
commit90bac9d148286776180e38be3549cb8ff9ec0674 (patch)
treeeb7bed53c13a935ba59e90ba3f2e88f07afe7fab
parent28ef277db4d82673a5639b2b6b933ea2af92c379 (diff)
Minor tuining of complexity thresholds
-rw-r--r--celt/celt_encoder.c4
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)