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:
Diffstat (limited to 'silk/float/encode_frame_FLP.c')
-rw-r--r--silk/float/encode_frame_FLP.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/silk/float/encode_frame_FLP.c b/silk/float/encode_frame_FLP.c
index 5e317cc1..4ee55921 100644
--- a/silk/float/encode_frame_FLP.c
+++ b/silk/float/encode_frame_FLP.c
@@ -246,6 +246,10 @@ opus_int silk_encode_frame_FLP(
if( iter == 0 && (useCBR == 1 || nBits > maxBits) ) {
*excess = nBits - maxBits;
+ /* For CBR, aim a little below the target to increase our chances. */
+ if ( useCBR ) {
+ *excess += 20;
+ }
}
if( useCBR == 0 && iter == 0 && nBits <= maxBits ) {
break;