Fixes a non-bitstream-related PLC integer overflow.
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 24 Jan 2012 08:08:15 +0000 (21:08 +1300)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 24 Jan 2012 08:08:15 +0000 (21:08 +1300)
silk/decoder_set_fs.c

index 8c012d3..e0a343f 100644 (file)
@@ -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;