Commit a687fa96 authored by Simon Morlat's avatar Simon Morlat

fix unitiliazed value, resulting in false reporting of corrupted packets.

more information at https://gitorious.org/baco/baco/source/20fb150daff0d3c6159b082d7f910c6bf7b2150a:refcode/patches/0002-fix_toc_extraction.patch#L7
parent dcb4798d
......@@ -227,10 +227,11 @@ void SKP_Silk_SDK_get_TOC(
{
SKP_Silk_decoder_state sDec; // Local Decoder state to avoid interfering with running decoder */
SKP_Silk_decoder_control sDecCtrl;
SKP_int TempQ[ MAX_FRAME_LENGTH ];
SKP_int TempQ[ MAX_FRAME_LENGTH ]={0};
sDec.nFramesDecoded = 0;
sDec.fs_kHz = 0; /* Force update parameters LPC_order etc */
memset(&sDec, 0, sizeof(sDec));
memset(&sDecCtrl, 0, sizeof(sDecCtrl));
SKP_Silk_range_dec_init( &sDec.sRC, inData, ( SKP_int32 )nBytesIn );
Silk_TOC->corrupt = 0;
......
......@@ -227,10 +227,11 @@ void SKP_Silk_SDK_get_TOC(
{
SKP_Silk_decoder_state sDec; // Local Decoder state to avoid interfering with running decoder */
SKP_Silk_decoder_control sDecCtrl;
SKP_int TempQ[ MAX_FRAME_LENGTH ];
SKP_int TempQ[ MAX_FRAME_LENGTH ]={0};
memset(&sDec, 0, sizeof(sDec));
memset(&sDecCtrl, 0, sizeof(sDecCtrl));
sDec.nFramesDecoded = 0;
sDec.fs_kHz = 0; /* Force update parameters LPC_order etc */
SKP_Silk_range_dec_init( &sDec.sRC, inData, ( SKP_int32 )nBytesIn );
Silk_TOC->corrupt = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment