From b6d4ff5dae90009139baae9bd22f2761ab702674 Mon Sep 17 00:00:00 2001 From: Vladimir Malenovsky Date: Fri, 7 Nov 2025 13:01:42 +0100 Subject: [PATCH 1/2] fix bug in SPAR active W channel cross-fade process --- lib_com/options.h | 2 ++ lib_enc/ivas_spar_encoder_fx.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index f658a0ace..25d9aa3d1 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -101,6 +101,8 @@ #define FIX_2184_EVS_STEREO_DMX_CHANNEL_DISAPPEARING /* Orange: Fix for issue 2184 - to prevent one channel from becoming inaudible in the mono downmix output */ #define FIX_2148_OBJ_EDIT_ISSUE_WITH_OSBA /* Nokia: Add missing code to solve issue */ +#define BE_FIX_1391_COVERAGE_SPAR_DYN__CHANNEL /* Dolby: Fix coverage of SBA SPAR Dynamic active W not getting hit by the tests */ + /* ################### End FIXES switches ########################### */ /* #################### Start BASOP porting switches ############################ */ diff --git a/lib_enc/ivas_spar_encoder_fx.c b/lib_enc/ivas_spar_encoder_fx.c index 0b1f77245..623e32069 100644 --- a/lib_enc/ivas_spar_encoder_fx.c +++ b/lib_enc/ivas_spar_encoder_fx.c @@ -929,7 +929,11 @@ static ivas_error ivas_spar_enc_process_fx( IF( hSpar->hFbMixer->fb_cfg->active_w_mixing == 0 ) { /*cross fade between new active W channels and old passive W channel*/ +#ifdef BE_FIX_1391_COVERAGE_SPAR_DYN__CHANNEL + IF( EQ_16( dyn_active_w_flag, 1 ) || EQ_16( hSpar->hMdEnc->spar_md.prior_dyn_active_w_flag, 1 ) ) +#else IF( EQ_16( dyn_active_w_flag, 1 ) ) +#endif { IF( NE_16( hSpar->hMdEnc->spar_md.prior_dyn_active_w_flag, dyn_active_w_flag ) ) { -- GitLab From c5be9be8994949209a55da00442ca8e0521cc850 Mon Sep 17 00:00:00 2001 From: Vladimir Malenovsky Date: Fri, 7 Nov 2025 13:42:04 +0100 Subject: [PATCH 2/2] Dummy commit -- GitLab