summaryrefslogtreecommitdiff
path: root/silk/init_decoder.c
diff options
context:
space:
mode:
authorKoen Vos <koen.vos@skype.net>2011-12-14 11:39:29 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-12-14 11:41:18 -0500
commita51ebd6831e839551255999f501dbf635c0f1943 (patch)
tree539dc5d16fcf06e5dbb96561dfb08673c6183a40 /silk/init_decoder.c
parent5609cec9a5e1ea8fcb056f2306a115cb3b61c4c9 (diff)
downloadopus-a51ebd6831e839551255999f501dbf635c0f1943.tar.gz
Accuracy improvements to help float implementations
Also clamps the gain to avoid forcing a float decoder to emulate the state rescaling.
Diffstat (limited to 'silk/init_decoder.c')
-rw-r--r--silk/init_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/init_decoder.c b/silk/init_decoder.c
index c1c21fdb..fe50a817 100644
--- a/silk/init_decoder.c
+++ b/silk/init_decoder.c
@@ -43,7 +43,7 @@ opus_int silk_init_decoder(
/* Used to deactivate LSF interpolation */
psDec->first_frame_after_reset = 1;
- psDec->prev_inv_gain_Q31 = silk_int32_MAX;
+ psDec->prev_gain_Q16 = 65536;
/* Reset CNG state */
silk_CNG_Reset( psDec );