shithub: opus

Download patch

ref: f898ae102133fc77959754bfef754dd0e95ba2c3
parent: ee8adbe7015c9dfaa2f66279efdbd63e8e935ce8
author: Jean-Marc Valin <[email protected]>
date: Tue Jan 24 16:08:15 EST 2012

Fixes a non-bitstream-related PLC integer overflow.

--- a/silk/decoder_set_fs.c
+++ b/silk/decoder_set_fs.c
@@ -108,6 +108,8 @@
             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;