Commit 81a66211 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix index calculation

parent 0aa505b3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,10 +231,10 @@ static void tcx_ltp_pitch_search(
#ifdef FIX_2272_OOB_INDEXING_IN_LTP_PIT_SEARCH
        int16_t cor_idx_tmp;

        cor_idx_tmp = cor_idx + t0;
#endif
        t0--;
#ifdef FIX_2272_OOB_INDEXING_IN_LTP_PIT_SEARCH
        cor_idx_tmp = cor_idx + t0;
        cor_max = interpolate_corr( &cor[cor_idx_tmp], fraction, pitres );
#else
        cor_max = interpolate_corr( &pt_cor[t0], fraction, pitres );