Commit b6d4ff5d authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

fix bug in SPAR active W channel cross-fade process

parent f344a5ab
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 ############################ */
+4 −0
Original line number Diff line number Diff line
@@ -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 ) )
            {