mirror of
https://github.com/xiph/opus.git
synced 2025-06-03 17:17:42 +00:00
Fixes a panned stereo regression
The previous commit introduced some cross-talk for the case of SILK with one channel muted.
This commit is contained in:
parent
b24e574627
commit
d84c8d1fd8
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue