Correct encoder/decoder state mismatch and spurious state resetting in the encoder...
[opus.git] / silk / dec_API.c
index d979e5b..a551077 100644 (file)
@@ -233,6 +233,7 @@ opus_int silk_Decode(
         psDec->channel_state[ 1 ].lagPrev        = 100;
         psDec->channel_state[ 1 ].LastGainIndex  = 10;
         psDec->channel_state[ 1 ].prevSignalType = TYPE_NO_VOICE_ACTIVITY;
+        psDec->channel_state[ 1 ].first_frame_after_reset = 1;
     }
 
     /* Call decoder for one frame */