summaryrefslogtreecommitdiff
path: root/silk/structs.h
diff options
context:
space:
mode:
authorKoen Vos <koen.vos@skype.net>2011-10-28 21:05:22 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-28 21:05:22 -0400
commit0dbd0ca3e63064cf5108d716f96e4bbbe21c160d (patch)
treebf1ba54892aa9fbb4a3c0de7cd4197f56a25219f /silk/structs.h
parentacc7a6c78b266e3ef0e1f91ee405af92a0989dec (diff)
downloadopus-0dbd0ca3e63064cf5108d716f96e4bbbe21c160d.tar.gz
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
Diffstat (limited to 'silk/structs.h')
-rw-r--r--silk/structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/silk/structs.h b/silk/structs.h
index 02750192..9f7fd298 100644
--- a/silk/structs.h
+++ b/silk/structs.h
@@ -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 */