Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Vos <koen.vos@skype.net>2011-10-06 21:38:26 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-06 21:38:26 +0400
commit888756691836ca8ce419a870a768f910330fb9d1 (patch)
tree9cf2a47be95f56c4c71dc49cdf7da7fdd9cb6bb9 /silk/decode_core.c
parent480ba7034810fec56625dcd9ceeeb01d75c8d755 (diff)
SILK update
Simplifies mono/stereo switching in SILK Fixes a quantization mismatch between encoder and decoder Constrains the pitch lags in the same way in the encoder and decoder
Diffstat (limited to 'silk/decode_core.c')
-rw-r--r--silk/decode_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/decode_core.c b/silk/decode_core.c
index 6a07ee1a..b80a3895 100644
--- a/silk/decode_core.c
+++ b/silk/decode_core.c
@@ -91,10 +91,10 @@ void silk_decode_core(
/* Preload LPC coeficients to array on stack. Gives small performance gain */
silk_memcpy( A_Q12_tmp, A_Q12, psDec->LPC_order * sizeof( opus_int16 ) );
B_Q14 = &psDecCtrl->LTPCoef_Q14[ k * LTP_ORDER ];
- Gain_Q10 = silk_RSHIFT( psDecCtrl->Gains_Q16[ k ], 6 );
signalType = psDec->indices.signalType;
- inv_gain_Q16 = silk_INVERSE32_varQ( Gain_Q10, 26 );
+ Gain_Q10 = silk_RSHIFT( psDecCtrl->Gains_Q16[ k ], 6 );
+ inv_gain_Q16 = silk_INVERSE32_varQ( psDecCtrl->Gains_Q16[ k ], 32 );
inv_gain_Q16 = silk_min( inv_gain_Q16, silk_int16_MAX );
/* Calculate Gain adjustment factor */