Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-01-31 11:03:39 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-01-31 11:18:05 +0400
commit66820f350d14fa3a65b73b6f1c2be1eb03ba47f3 (patch)
treea6e890bbd82619665e8ebc06b8229eed70439d49 /src
parent54518c879a6541eab749bc19628f1795daaad1e3 (diff)
Tweaks the CELT fractional resampling delay to get perfect alignment
Also using the same int->float conversion functions for SILK as for CELT and changed encoder implementation default to constrained VBR just to be safe when VBR gets more aggressive.
Diffstat (limited to 'src')
-rw-r--r--src/opus_encoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c
index b95cf288..805bffb0 100644
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -194,6 +194,8 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat
celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(10));
st->use_vbr = 1;
+ /* Makes constrained VBR the default (safer for real-time use) */
+ st->vbr_constraint = 1;
st->user_bitrate_bps = OPUS_AUTO;
st->bitrate_bps = 3000+Fs*channels;
st->application = application;