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@jmvalin.ca>2012-01-24 12:08:15 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-01-24 12:08:15 +0400
commitf898ae102133fc77959754bfef754dd0e95ba2c3 (patch)
tree86dc622b35ceae7ccd7c9c9d69eaac161db638a3 /silk/decoder_set_fs.c
parentee8adbe7015c9dfaa2f66279efdbd63e8e935ce8 (diff)
Fixes a non-bitstream-related PLC integer overflow.
Diffstat (limited to 'silk/decoder_set_fs.c')
-rw-r--r--silk/decoder_set_fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/silk/decoder_set_fs.c b/silk/decoder_set_fs.c
index 8c012d35..e0a343f8 100644
--- a/silk/decoder_set_fs.c
+++ b/silk/decoder_set_fs.c
@@ -108,6 +108,8 @@ opus_int silk_decoder_set_fs(
psDec->lagPrev = 100;
psDec->LastGainIndex = 10;
psDec->prevSignalType = TYPE_NO_VOICE_ACTIVITY;
+ silk_memset( psDec->outBuf, 0, sizeof(psDec->outBuf));
+ silk_memset( psDec->sLPC_Q14_buf, 0, sizeof(psDec->sLPC_Q14_buf) );
}
psDec->fs_kHz = fs_kHz;