Index: silk/init_encoder.c |
diff --git a/silk/init_encoder.c b/silk/init_encoder.c |
index 7a4d918c4b20bd633b0de942e04a9aa65d7335a0..65995c33fa47a1f2b17107eacb5a4a13cafbbcb4 100644 |
--- a/silk/init_encoder.c |
+++ b/silk/init_encoder.c |
@@ -34,12 +34,14 @@ POSSIBILITY OF SUCH DAMAGE. |
#include "main_FLP.h" |
#endif |
#include "tuning_parameters.h" |
+#include "cpu_support.h" |
/*********************************/ |
/* Initialize Silk Encoder state */ |
/*********************************/ |
opus_int silk_init_encoder( |
- silk_encoder_state_Fxx *psEnc /* I/O Pointer to Silk FIX encoder state */ |
+ silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */ |
+ int arch /* I Run-time architecture */ |
) |
{ |
opus_int ret = 0; |
@@ -47,6 +49,8 @@ opus_int silk_init_encoder( |
/* Clear the entire encoder state */ |
silk_memset( psEnc, 0, sizeof( silk_encoder_state_Fxx ) ); |
+ psEnc->sCmn.arch = arch; |
+ |
psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ), 8 ); |
psEnc->sCmn.variable_HP_smth2_Q15 = psEnc->sCmn.variable_HP_smth1_Q15; |