Oops, had inverted some tuning lines
This commit is contained in:
parent
686bfe83fa
commit
f85bc8a293
4 changed files with 7 additions and 6 deletions
|
@ -113,10 +113,10 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
|
|||
if( st->bandwidth == BANDWIDTH_SUPERWIDEBAND ) {
|
||||
if( st->Fs == 100 * frame_size ) {
|
||||
/* 24 kHz, 10 ms */
|
||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 8000 - ( 1 - st->use_vbr ) * 7000 ) * 2 ) / 3;
|
||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 12000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
|
||||
} else {
|
||||
/* 24 kHz, 20 ms */
|
||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 12000 - ( 1 - st->use_vbr ) * 10000 ) * 2 ) / 3;
|
||||
st->silk_mode.bitRate = ( ( st->silk_mode.bitRate + 8000 - ( 1 - st->use_vbr ) * 7000 ) * 2 ) / 3;
|
||||
}
|
||||
} else {
|
||||
if( st->Fs == 100 * frame_size ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue