diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-02-19 09:42:15 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-02-19 09:42:15 +0400 |
commit | 3ecd9c20cbc77e83dfd83c3d2e8e0640a5b50bba (patch) | |
tree | bf6fcfd5e08a1e1b9704ad6c1fdb079dc2350642 /silk/control_audio_bandwidth.c | |
parent | 851f8033f6d3754a76adca225f06f4c573ea2ac2 (diff) |
Fixes two bandwidth decision issues
1) 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.
2) Bandwidth detection can no longer force SILK to go below wideband to
avoid switches that require redundancy.
Diffstat (limited to 'silk/control_audio_bandwidth.c')
-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; } } } |