Commit 0687948a authored by Jonas Svedberg's avatar Jonas Svedberg
Browse files

Update FEC_HQ_phase_ecu.c, avoid "+=" when accumulating a variable of type int16_t

parent 322e6f05
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2113,7 +2113,7 @@ static void hq_phase_ecu(
#ifdef FIX_1179_USAN_PHASEECU
            if ( element_mode != EVS_MONO )
            {
                *time_offs += (int16_t) output_frame;
                *time_offs = (int16_t) ( *time_offs + output_frame ); /* USAN avoid risk of internal int32_t  in "+="  */
                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 */