Fix DRED segfault

Properly re-initialize DRED (only) when needed
This commit is contained in:
Jean-Marc Valin 2022-12-20 17:32:16 -05:00
parent 72c93e0523
commit 68eea61cb0
No known key found for this signature in database
GPG key ID: 531A52533318F00A
2 changed files with 14 additions and 12 deletions

View file

@ -262,11 +262,6 @@ typedef struct {
/* FIXME: We should include the state struct directly to preserve the state shadow copy property. */
LPCNetPLCState *lpcnet;
int pre_filled;
#ifdef ENABLE_NEURAL_FEC
DREDDec dred_decoder;
float fec_features[2*DRED_NUM_REDUNDANCY_FRAMES*DRED_NUM_FEATURES];
int nb_fec_frames;
#endif
#endif
} silk_PLC_struct;