mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 23:40:50 +00:00
PLC overflow fix
This commit is contained in:
parent
3c60bae2d7
commit
646fcc33d7
1 changed files with 4 additions and 0 deletions
|
@ -660,6 +660,10 @@ static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, int N, int LM)
|
||||||
celt_iir(buf+DECODE_BUFFER_SIZE-N, lpc+c*LPC_ORDER,
|
celt_iir(buf+DECODE_BUFFER_SIZE-N, lpc+c*LPC_ORDER,
|
||||||
buf+DECODE_BUFFER_SIZE-N, extrapolation_len, LPC_ORDER,
|
buf+DECODE_BUFFER_SIZE-N, extrapolation_len, LPC_ORDER,
|
||||||
lpc_mem, st->arch);
|
lpc_mem, st->arch);
|
||||||
|
#ifdef FIXED_POINT
|
||||||
|
for (i=0; i < extrapolation_len; i++)
|
||||||
|
buf[DECODE_BUFFER_SIZE-N+i] = SATURATE(buf[DECODE_BUFFER_SIZE-N+i], SIG_SAT);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the synthesis energy is higher than expected, which can
|
/* Check if the synthesis energy is higher than expected, which can
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue