Index: silk/fixed/find_pred_coefs_FIX.c |
diff --git a/silk/fixed/find_pred_coefs_FIX.c b/silk/fixed/find_pred_coefs_FIX.c |
index 70d0279a1d3d475364560c29ccef8ffe8357b3e3..5c22f8288b59cac4255fa8cf317082b5d4a1f429 100644 |
--- a/silk/fixed/find_pred_coefs_FIX.c |
+++ b/silk/fixed/find_pred_coefs_FIX.c |
@@ -93,7 +93,7 @@ void silk_find_pred_coefs_FIX( |
/* Quantize LTP gain parameters */ |
silk_quant_LTP_gains( psEncCtrl->LTPCoef_Q14, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex, |
- WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr); |
+ &psEnc->sCmn.sum_log_gain_Q7, WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr); |
/* Control LTP scaling */ |
silk_LTP_scale_ctrl_FIX( psEnc, psEncCtrl, condCoding ); |
@@ -118,6 +118,7 @@ void silk_find_pred_coefs_FIX( |
silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) ); |
psEncCtrl->LTPredCodGain_Q7 = 0; |
+ psEnc->sCmn.sum_log_gain_Q7 = 0; |
} |
/* Limit on total predictive coding gain */ |