Skip to content
Snippets Groups Projects
Commit ebece633 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fixes a stereo SILK->CELT switching bug

Making sure not to abruptly "de-collapse" the stereo for such transitions
parent 6d5af483
No related branches found
No related tags found
No related merge requests found
......@@ -895,7 +895,7 @@ int opus_encode_float(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
if (st->mode != MODE_HYBRID || st->stream_channels==1)
st->hybrid_stereo_width_Q14 = st->silk_mode.stereoWidth_Q14 = 1<<14;
st->silk_mode.stereoWidth_Q14 = 1<<14;
if( st->channels == 2 ) {
/* Apply stereo width reduction (at low bitrates) */
if( st->hybrid_stereo_width_Q14 < (1 << 14) || st->silk_mode.stereoWidth_Q14 < (1 << 14) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment