| Index: silk/control_audio_bandwidth.c
|
| diff --git a/silk/control_audio_bandwidth.c b/silk/control_audio_bandwidth.c
|
| index a9af91345c6c1d06a0660332280b80c41c1a44d0..b645dd57f45202927acd408829c92f486eda0e95 100644
|
| --- a/silk/control_audio_bandwidth.c
|
| +++ b/silk/control_audio_bandwidth.c
|
| @@ -80,6 +80,8 @@ opus_int silk_control_audio_bandwidth(
|
| } else {
|
| if( psEncC->sLP.transition_frame_no <= 0 ) {
|
| encControl->switchReady = 1;
|
| + /* Make room for redundancy */
|
| + encControl->maxBits -= encControl->maxBits * 5 / ( encControl->payloadSize_ms + 5 );
|
| } else {
|
| /* Direction: down (at double speed) */
|
| psEncC->sLP.mode = -2;
|
| @@ -106,6 +108,8 @@ opus_int silk_control_audio_bandwidth(
|
| } else {
|
| if( psEncC->sLP.mode == 0 ) {
|
| encControl->switchReady = 1;
|
| + /* Make room for redundancy */
|
| + encControl->maxBits -= encControl->maxBits * 5 / ( encControl->payloadSize_ms + 5 );
|
| } else {
|
| /* Direction: up */
|
| psEncC->sLP.mode = 1;
|
|
|