| Index: silk/dec_API.c
|
| diff --git a/silk/dec_API.c b/silk/dec_API.c
|
| index 68403b7c05b1445ca6884572d0db79a744dd8863..bb0bc07784af923205abc963565e0eea050cb1c3 100644
|
| --- a/silk/dec_API.c
|
| +++ b/silk/dec_API.c
|
| @@ -8,11 +8,11 @@ this list of conditions and the following disclaimer.
|
| - Redistributions in binary form must reproduce the above copyright
|
| notice, this list of conditions and the following disclaimer in the
|
| documentation and/or other materials provided with the distribution.
|
| -- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
| +- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
| names of specific contributors, may be used to endorse or promote
|
| products derived from this software without specific prior written
|
| permission.
|
| -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
|
| +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
| @@ -69,6 +69,9 @@ opus_int silk_InitDecoder( /* O Returns error co
|
| for( n = 0; n < DECODER_NUM_CHANNELS; n++ ) {
|
| ret = silk_init_decoder( &channel_state[ n ] );
|
| }
|
| + silk_memset(&((silk_decoder *)decState)->sStereo, 0, sizeof(((silk_decoder *)decState)->sStereo));
|
| + /* Not strictly needed, but it's cleaner that way */
|
| + ((silk_decoder *)decState)->prev_decode_only_middle = 0;
|
|
|
| return ret;
|
| }
|
| @@ -97,6 +100,8 @@ opus_int silk_Decode( /* O Returns error co
|
| opus_int stereo_to_mono;
|
| SAVE_STACK;
|
|
|
| + silk_assert( decControl->nChannelsInternal == 1 || decControl->nChannelsInternal == 2 );
|
| +
|
| /**********************************/
|
| /* Test if first frame in payload */
|
| /**********************************/
|
|
|