diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-01-31 11:03:39 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-01-31 11:18:05 +0400 |
commit | 66820f350d14fa3a65b73b6f1c2be1eb03ba47f3 (patch) | |
tree | a6e890bbd82619665e8ebc06b8229eed70439d49 /src | |
parent | 54518c879a6541eab749bc19628f1795daaad1e3 (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.c | 2 |
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; |