diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-02-19 09:42:15 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-05-08 06:26:29 +0400 |
commit | fd353eb099582f1b838c0091a57f9af74d903627 (patch) | |
tree | a94099d9d8abcab8bbf12762188a2496c13c46c3 | |
parent | 85644d20efe15b0e336c8f309fdadf4353c19184 (diff) |
Fixes a bandwidth decision issue
In cases where the SILK desired bandwidth went down, then quickly up, we
count get stuck in a mode with the LP variation going the wrong way.
packport of the relevant part of 3ecd9c20cbc77e8
-rw-r--r-- | silk/control_audio_bandwidth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/silk/control_audio_bandwidth.c b/silk/control_audio_bandwidth.c index b645dd57..ef02feda 100644 --- a/silk/control_audio_bandwidth.c +++ b/silk/control_audio_bandwidth.c @@ -115,6 +115,9 @@ opus_int silk_control_audio_bandwidth( psEncC->sLP.mode = 1; } } + } else { + if (psEncC->sLP.mode<0) + psEncC->sLP.mode = 1; } } } |