diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-05-11 12:09:05 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-05-11 12:09:05 -0400 |
commit | 6ae5101fb43846dea3ae6613d6f8ce04e5294572 (patch) | |
tree | 79606b9863f97ed7fa5699f8a350f1bf1d875a43 /celt | |
parent | 1a9e8539d38d4bd79fd9717ad8d97b7e95ea264f (diff) | |
download | libopus-6ae5101fb43846dea3ae6613d6f8ce04e5294572.tar.gz |
Fixes a fixed-point overflow by scaling pitch search more conservatively
Diffstat (limited to 'celt')
-rw-r--r-- | celt/pitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/pitch.c b/celt/pitch.c index c01ea55e..37fec8a8 100644 --- a/celt/pitch.c +++ b/celt/pitch.c @@ -114,7 +114,7 @@ void pitch_downsample(celt_sig * restrict x[], opus_val16 * restrict x_lp, opus_val32 maxabs = MAX32(1, celt_maxabs32(x[0], len)); if (C==2) maxabs = MAX32(maxabs, celt_maxabs32(x[1], len)); - shift = IMAX(0,celt_ilog2(maxabs)-11); + shift = IMAX(0,celt_ilog2(maxabs)-10); if (C==2) shift++; #endif |