summaryrefslogtreecommitdiff
path: root/silk/stereo_find_predictor.c
diff options
context:
space:
mode:
Diffstat (limited to 'silk/stereo_find_predictor.c')
-rw-r--r--silk/stereo_find_predictor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/stereo_find_predictor.c b/silk/stereo_find_predictor.c
index 49ef46d7..d7be0f5f 100644
--- a/silk/stereo_find_predictor.c
+++ b/silk/stereo_find_predictor.c
@@ -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 );