diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-02 18:11:33 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-08 14:15:43 -0400 |
commit | f746ee4360a996d5cb8aae66424c0133851dddbd (patch) | |
tree | 4be916e32baeebb04ee260b4ff9e3edea8f621cd | |
parent | e03da3e5780e25fba451ee55a43f611e173e4032 (diff) | |
download | opus-f746ee4360a996d5cb8aae66424c0133851dddbd.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index ef6fc590..130496bf 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -980,8 +980,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; } |