Fixes two SILK PLC issues

- Calling the decoder for FEC when there's no LBRR should no longer crash
- There should no longer be an issue with the PLC on frame size switching
This commit is contained in:
Koen Vos 2011-10-28 21:05:22 -04:00 committed by Jean-Marc Valin
parent acc7a6c78b
commit 0dbd0ca3e6
5 changed files with 25 additions and 18 deletions

View file

@ -237,8 +237,10 @@ typedef struct {
opus_int32 conc_energy;
opus_int conc_energy_shift;
opus_int16 prevLTP_scale_Q14;
opus_int32 prevGain_Q16[ MAX_NB_SUBFR ];
opus_int32 prevGain_Q16[ 2 ];
opus_int fs_kHz;
opus_int nb_subfr;
opus_int subfr_length;
} silk_PLC_struct;
/* Struct for CNG */