Index: silk/float/find_pred_coefs_FLP.c |
diff --git a/silk/float/find_pred_coefs_FLP.c b/silk/float/find_pred_coefs_FLP.c |
index ea2c6c432ab459ef6a506d747416bf2f649e7848..1af4fe5f1b2d1676ca2682c026d98c2e781ae50c 100644 |
--- a/silk/float/find_pred_coefs_FLP.c |
+++ b/silk/float/find_pred_coefs_FLP.c |
@@ -67,7 +67,8 @@ void silk_find_pred_coefs_FLP( |
/* Quantize LTP gain parameters */ |
silk_quant_LTP_gains_FLP( psEncCtrl->LTPCoef, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex, |
- &psEnc->sCmn.sum_log_gain_Q7, 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, |
+ psEnc->sCmn.arch ); |
/* Control LTP scaling */ |
silk_LTP_scale_ctrl_FLP( psEnc, psEncCtrl, condCoding ); |
@@ -90,13 +91,13 @@ void silk_find_pred_coefs_FLP( |
} |
silk_memset( psEncCtrl->LTPCoef, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( silk_float ) ); |
psEncCtrl->LTPredCodGain = 0.0f; |
- psEnc->sCmn.sum_log_gain_Q7 = 0; |
+ psEnc->sCmn.sum_log_gain_Q7 = 0; |
} |
/* Limit on total predictive coding gain */ |
if( psEnc->sCmn.first_frame_after_reset ) { |
minInvGain = 1.0f / MAX_PREDICTION_POWER_GAIN_AFTER_RESET; |
- } else { |
+ } else { |
minInvGain = (silk_float)pow( 2, psEncCtrl->LTPredCodGain / 3 ) / MAX_PREDICTION_POWER_GAIN; |
minInvGain /= 0.25f + 0.75f * psEncCtrl->coding_quality; |
} |