Commit 8019e4e3 authored by Koen Vos's avatar Koen Vos Committed by Jean-Marc Valin
Browse files

Fixes the case of PLC before receiving any valid packet

parent 46185626
......@@ -112,7 +112,11 @@ SKP_int silk_Decode(
for( n = 0; n < decControl->nChannelsInternal; n++ ) {
if( channel_state[ n ].nFramesDecoded == 0 ) {
SKP_int fs_kHz_dec;
if( decControl->payloadSize_ms == 10 ) {
if( decControl->payloadSize_ms == 0 ) {
/* Assuming packet loss, use 10 ms */
channel_state[ n ].nFramesPerPacket = 1;
channel_state[ n ].nb_subfr = 2;
} else if( decControl->payloadSize_ms == 10 ) {
channel_state[ n ].nFramesPerPacket = 1;
channel_state[ n ].nb_subfr = 2;
} else if( decControl->payloadSize_ms == 20 ) {
......
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