Commit e2b62fed authored by Jonas Svedberg's avatar Jonas Svedberg Committed by emerit
Browse files

formatting

parent bd379e42
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -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;
        }
    }
@@ -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];
    }