Commit 3c6456b7 authored by emerit's avatar emerit
Browse files

fix no diegetic pan with DISCRETE_ISM_DTX_CNG

parent 967a7866
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -273,10 +273,17 @@ ivas_error ivas_ism_metadata_enc(
        {
#ifdef DISCRETE_ISM_DTX_CNG
#ifdef ISM_NO_DIEGETIC_PAN
            if ( ( localVAD[ch] == 0 ) && hSCE[ch]->hCoreCoder[0]->lp_noise <= 10 )
            if ( ( localVAD[ch] == 0 ) && ( hSCE[ch]->hCoreCoder[0]->lp_noise <= 10 ) )
            {
                hIsmMeta[ch]->ism_metadata_flag = 0;
            }
            else
            {
                if ( hIsmMeta[ch]->ism_metadata_flag == 0 )
                {
                    hIsmMeta[ch]->ism_metadata_flag = 1;
                }
            }
#else
            hIsmMeta[ch]->ism_metadata_flag = localVAD[ch] || hSCE[ch]->hCoreCoder[0]->lp_noise > 10;
#endif