Loading lib_dec/FEC_HQ_phase_ecu.c +19 −2 Original line number Diff line number Diff line Loading @@ -2103,6 +2103,20 @@ static void hq_phase_ecu( if ( prev_bfi && *last_fec ) { #ifdef FIX_1179_USAN_PHASEECU if ( element_mode != EVS_MONO ) { *time_offs += (int16_t) output_frame; if ( *time_offs <= 0 ) { /* detected wrap around of st->time_offs */ *time_offs = (int16_t) INT16_MAX; /* keep a very high value so that the long term muting stays on */ } } else { *time_offs += output_frame; /* EVS_MONO BE compatible, but EVS CR needed as wrap will cause burst length muting envelope instability issues */ } #else *time_offs += output_frame; } } Loading @@ -2124,6 +2138,9 @@ static void hq_phase_ecu( seed = *time_offs; if ( *num_p > 0 ) { #ifdef FIX_1179_USAN_PHASEECU seed += (int16_t) ( plocs[*num_p - 1] ); /* explicit cast, i.e. the seed value may wrap */ #else seed += plocs[*num_p - 1]; } Loading Loading
lib_dec/FEC_HQ_phase_ecu.c +19 −2 Original line number Diff line number Diff line Loading @@ -2103,6 +2103,20 @@ static void hq_phase_ecu( if ( prev_bfi && *last_fec ) { #ifdef FIX_1179_USAN_PHASEECU if ( element_mode != EVS_MONO ) { *time_offs += (int16_t) output_frame; if ( *time_offs <= 0 ) { /* detected wrap around of st->time_offs */ *time_offs = (int16_t) INT16_MAX; /* keep a very high value so that the long term muting stays on */ } } else { *time_offs += output_frame; /* EVS_MONO BE compatible, but EVS CR needed as wrap will cause burst length muting envelope instability issues */ } #else *time_offs += output_frame; } } Loading @@ -2124,6 +2138,9 @@ static void hq_phase_ecu( seed = *time_offs; if ( *num_p > 0 ) { #ifdef FIX_1179_USAN_PHASEECU seed += (int16_t) ( plocs[*num_p - 1] ); /* explicit cast, i.e. the seed value may wrap */ #else seed += plocs[*num_p - 1]; } Loading