diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-21 21:56:55 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-22 15:57:01 -0400 |
commit | 184a4767aad0e813cffa4aa178e0c161a4d17253 (patch) | |
tree | 2135f416b1dd2f4f8d307c4aa92e1f366264858a | |
parent | 4c9ce97dbfa5f2ab0fb142a6794318444852a23b (diff) | |
download | opus-184a4767aad0e813cffa4aa178e0c161a4d17253.tar.gz |
getting rid of a PLC overflow (I think)
-rw-r--r-- | celt/celt_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c index 0228d9e1..5e0c2c88 100644 --- a/celt/celt_decoder.c +++ b/celt/celt_decoder.c @@ -630,7 +630,7 @@ static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, int N, int LM) tmp = ROUND16( buf[DECODE_BUFFER_SIZE-MAX_PERIOD-N+extrapolation_offset+j], SIG_SHIFT); - S1 += SHR32(MULT16_16(tmp, tmp), 8); + S1 += SHR32(MULT16_16(tmp, tmp), 9); } { @@ -654,7 +654,7 @@ static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, int N, int LM) for (i=0;i<extrapolation_len;i++) { opus_val16 tmp = ROUND16(buf[DECODE_BUFFER_SIZE-N+i], SIG_SHIFT); - S2 += SHR32(MULT16_16(tmp, tmp), 8); + S2 += SHR32(MULT16_16(tmp, tmp), 9); } /* This checks for an "explosion" in the synthesis. */ #ifdef FIXED_POINT |