Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@amazon.com>2023-10-31 09:14:03 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-11-03 09:48:38 +0300
commit166a6c8e49fe1335feae6ffc450325f7f5f628c6 (patch)
tree80f69b2e84c185ccdbbcc228d5ce25c97d1d2076
parent74c67a8df5c588fd733820eb2f5f3ff59de0e4a3 (diff)
Fix silly bug in CELT Deep PLC
-rw-r--r--celt/celt_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c
index 32e26f1b..d6cff260 100644
--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -946,7 +946,7 @@ static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, int N, int LM
for (sum=0, j=0;j<16;j++) sum += 3*st->plc_pcm[i+j+1]*sinc_filter[3*j+2];
buf[DECODE_BUFFER_SIZE-N+3*i+1] = sum;
for (sum=0, j=0;j<16;j++) sum += 3*st->plc_pcm[i+j+1]*sinc_filter[3*j+1];
- buf[DECODE_BUFFER_SIZE-N+3*i+1] = sum;
+ buf[DECODE_BUFFER_SIZE-N+3*i+2] = sum;
}
OPUS_MOVE(st->plc_pcm, &st->plc_pcm[N/3], st->plc_fill-N/3);
st->plc_fill -= N/3;