From e775896ed3ffb4da9d2958a30f77fd6462c2c7f7 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 2 Jun 2016 18:11:33 -0400 Subject: Getting rid of the SILK penalty for hybrid CBR. That was likely a mistake from a misunderstanding on the SILK bit allocation --- src/opus_encoder.c | 4 ++-- 1 file 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; } -- cgit v1.2.1