ref: b56c278b0edc7dff90b1a930e8b79edfb4fc4829
parent: 9cbbcb53ae4b9123ce9687c787f61a546b43a581
author: Jean-Marc Valin <[email protected]>
date: Wed Oct 10 09:32:16 EDT 2012
Fixes a fixed-point overflow in the new pitch code
--- a/silk/fixed/pitch_analysis_core_FIX.c
+++ b/silk/fixed/pitch_analysis_core_FIX.c
@@ -485,7 +485,7 @@
Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ];
}
- target_ptr = &frame[ PE_LTP_MEM_LENGTH_MS * Fs_kHz ];
+ target_ptr = &input_frame_ptr[ PE_LTP_MEM_LENGTH_MS * Fs_kHz ];
energy_target = silk_ADD32( silk_inner_prod_aligned( target_ptr, target_ptr, nb_subfr * sf_length ), 1 );
for( d = start_lag; d <= end_lag; d++ ) {
for( j = 0; j < nb_cbk_search; j++ ) {