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>2016-06-03 01:11:33 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-03 01:11:33 +0300
commit118c058d8b85e2d55dec73952d699b1a93be8733 (patch)
tree6bdd31e7e39232b1f10950a7c82378dbde692a32
parentf08f8bfb31b0361e9e165146f5a14b62d6152bd8 (diff)
Getting rid of the SILK penalty for hybrid CBR.
That was likely a mistake from a misunderstanding on the SILK bit allocation
-rw-r--r--src/opus_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index 04a829a2..3aed38ca 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -981,8 +981,8 @@ static int compute_silk_rate_for_hybrid(int rate, int bandwidth, int frame20ms,
}
if (!vbr)
{
- if (silk_rate > 8000)
- silk_rate -= 1000;
+ /* Tiny boost to SILK for CBR. We should probably tune this better. */
+ silk_rate += 100;
}
return silk_rate;
}