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

Fixes a panned stereo regression

The previous commit introduced some cross-talk for the case of SILK
with one channel muted.
parent b24e5746
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ opus_int32 silk_stereo_find_predictor( /* O Returns predict
/* Find predictor */
silk_sum_sqr_shift( &nrgx, &scale1, x, length );
silk_sum_sqr_shift( &nrgy, &scale2, y, length );
scale = silk_max_int( scale1, scale2 ) + 1;
scale = silk_max_int( scale1, scale2 );
scale = scale + ( scale & 1 ); /* make even */
nrgy = silk_RSHIFT32( nrgy, scale - scale2 );
nrgx = silk_RSHIFT32( nrgx, scale - scale1 );
......
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