Loading lib_enc/pit_enc.c +4 −0 Original line number Diff line number Diff line Loading @@ -446,6 +446,7 @@ int16_t pitch_fr4( #ifdef FIX_2273_OOB_INDEXING_IN_PIT_FR4 int16_t corr_off; #endif /* initialization */ if ( limit_flag == 0 ) { Loading Loading @@ -484,17 +485,20 @@ int16_t pitch_fr4( t_min = t0_min - L_INTERPOL1; t_max = t0_max + L_INTERPOL1; #ifndef FIX_2273_OOB_INDEXING_IN_PIT_FR4 corr = &corr_v[0] - t_min; /* corr[t_min..t_max] */ #else corr = corr_v; corr_off = -t_min; #endif #ifndef FIX_2273_OOB_INDEXING_IN_PIT_FR4 norm_corr( exc, xn, h, t_min, t_max, corr, L_subfr ); #else norm_corr( exc, xn, h, t_min, t_max, corr + corr_off, L_subfr ); #endif /*-----------------------------------------------------------------* * Find integer pitch *-----------------------------------------------------------------*/ Loading Loading
lib_enc/pit_enc.c +4 −0 Original line number Diff line number Diff line Loading @@ -446,6 +446,7 @@ int16_t pitch_fr4( #ifdef FIX_2273_OOB_INDEXING_IN_PIT_FR4 int16_t corr_off; #endif /* initialization */ if ( limit_flag == 0 ) { Loading Loading @@ -484,17 +485,20 @@ int16_t pitch_fr4( t_min = t0_min - L_INTERPOL1; t_max = t0_max + L_INTERPOL1; #ifndef FIX_2273_OOB_INDEXING_IN_PIT_FR4 corr = &corr_v[0] - t_min; /* corr[t_min..t_max] */ #else corr = corr_v; corr_off = -t_min; #endif #ifndef FIX_2273_OOB_INDEXING_IN_PIT_FR4 norm_corr( exc, xn, h, t_min, t_max, corr, L_subfr ); #else norm_corr( exc, xn, h, t_min, t_max, corr + corr_off, L_subfr ); #endif /*-----------------------------------------------------------------* * Find integer pitch *-----------------------------------------------------------------*/ Loading