diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-22 04:56:55 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-22 22:30:19 +0300 |
commit | 21036d062fffd3e2a5716b8c65c5cb55c15eb764 (patch) | |
tree | efadbd98d4be09b72e1f5abff6cf752966731b48 | |
parent | 33f2d6c18d49030b9d97441b6f8a0adc899dcab5 (diff) |
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 |