diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-10-10 21:32:16 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-10-10 21:32:16 +0400 |
commit | b56c278b0edc7dff90b1a930e8b79edfb4fc4829 (patch) | |
tree | 6579f6f516bb3d7863da92f5ec36654f72290735 | |
parent | 9cbbcb53ae4b9123ce9687c787f61a546b43a581 (diff) |
Fixes a fixed-point overflow in the new pitch code
-rw-r--r-- | silk/fixed/pitch_analysis_core_FIX.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/fixed/pitch_analysis_core_FIX.c b/silk/fixed/pitch_analysis_core_FIX.c index ef495293..5ef3fff3 100644 --- a/silk/fixed/pitch_analysis_core_FIX.c +++ b/silk/fixed/pitch_analysis_core_FIX.c @@ -485,7 +485,7 @@ opus_int silk_pitch_analysis_core( /* O Voicing estimate: 0 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++ ) { |