From 02a1a32c63ca3f24bfe7f90e1cfb4887b75c0278 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Mon, 13 Oct 2025 15:42:23 +0200 Subject: [PATCH] Missing part of FIX_1179_USAN_PHASEECU --- lib_dec/FEC_HQ_phase_ecu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib_dec/FEC_HQ_phase_ecu.c b/lib_dec/FEC_HQ_phase_ecu.c index 061f39204..da65786dc 100644 --- a/lib_dec/FEC_HQ_phase_ecu.c +++ b/lib_dec/FEC_HQ_phase_ecu.c @@ -2155,7 +2155,11 @@ static void hq_phase_ecu( } else { +#ifdef FIX_1179_USAN_PHASEECU + *time_offs = (int16_t) ( *time_offs + output_frame ); /* cast added for USAN, "+=" avoided as it may creat a truncation from int to int16_t */ +#else *time_offs += output_frame; +#endif if ( *time_offs <= 0 ) { /* detect wrap around of st->time_offs */ -- GitLab