ref: 85c599f93c8e739b3d771570bc80e2cd83b1a431
parent: e0210c750fec13568bf06903991da18f8d44914b
author: Jean-Marc Valin <[email protected]>
date: Wed May 4 17:01:20 EDT 2011
Minor tuning the WB/SWB and SWB/FB thresholds
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -178,9 +178,9 @@
st->bandwidth = BANDWIDTH_NARROWBAND;
} else if (st->first || st->silk_mode.allowBandwidthSwitch)
{
- if (mono_rate>30000 || (mono_rate>26000 && st->bandwidth==BANDWIDTH_FULLBAND))
+ if (mono_rate>31000 || (mono_rate>27000 && st->bandwidth==BANDWIDTH_FULLBAND))
st->bandwidth = BANDWIDTH_FULLBAND;
- else if (mono_rate>22000 || (mono_rate>18000 && st->bandwidth>=BANDWIDTH_SUPERWIDEBAND))
+ else if (mono_rate>23000 || (mono_rate>19000 && st->bandwidth>=BANDWIDTH_SUPERWIDEBAND))
st->bandwidth = BANDWIDTH_SUPERWIDEBAND;
else if (mono_rate>16000 || (mono_rate>13000 && st->bandwidth>=BANDWIDTH_WIDEBAND))
st->bandwidth = BANDWIDTH_WIDEBAND;