aboutsummaryrefslogtreecommitdiff
path: root/src/opus_multistream_encoder.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-24 01:57:52 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-24 01:57:52 -0500
commitccf7d9b18c39089a7ac363568709168ce2b7f7fa (patch)
treea19f50f1d56f3e54457414377936b35017955f2e /src/opus_multistream_encoder.c
parentabf91fe9d019257b536264120e2da69dbc52c4f9 (diff)
downloadlibopus-ccf7d9b18c39089a7ac363568709168ce2b7f7fa.tar.gz
Surround low-passing thresholds set to much lower bitrates
Diffstat (limited to 'src/opus_multistream_encoder.c')
-rw-r--r--src/opus_multistream_encoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c
index cec62667..49e27913 100644
--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -775,11 +775,11 @@ static int opus_multistream_encode_native
equiv_rate = st->bitrate_bps;
if (frame_size*50 < Fs)
equiv_rate -= 60*(Fs/frame_size - 50)*st->layout.nb_channels;
- if (equiv_rate > 16000*st->layout.nb_channels)
+ if (equiv_rate > 10000*st->layout.nb_channels)
opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND));
- else if (equiv_rate > 12000*st->layout.nb_channels)
+ else if (equiv_rate > 7000*st->layout.nb_channels)
opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_SUPERWIDEBAND));
- else if (equiv_rate > 8000*st->layout.nb_channels)
+ else if (equiv_rate > 5000*st->layout.nb_channels)
opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_WIDEBAND));
else
opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND));