shithub: opus

Download patch

ref: 686bfe83faa2b9d50d00751e69905f9df7a62af6
parent: 62b88c3b28abd2896adef63382fe1c19bd42e0e7
author: Jean-Marc Valin <[email protected]>
date: Thu Feb 3 06:47:10 EST 2011

Hybrid tuning

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -113,7 +113,7 @@
             if( st->bandwidth == BANDWIDTH_SUPERWIDEBAND ) {
                 if( st->Fs == 100 * frame_size ) {
                     /* 24 kHz, 10 ms */
-                    st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 14000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
+                    st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 8000 - ( 1 - st->use_vbr ) * 7000 ) * 2 ) / 3;
                 } else {
                     /* 24 kHz, 20 ms */
                     st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 12000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;