Commit 3c378290 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for high MLD observed for EVS non-diegetic panning case

parent 2a8ce389
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2939,6 +2939,12 @@ static ivas_error evs_dec_main(
    }

    st_ivas->BER_detect = hCoreCoder[0]->BER_detect;
#ifdef IVAS_FLOAT_FIXED
    FOR( Word16 i = 0; i < nOutSamples; i++ )
    {
        p_output[0][i] = output_16[i];
    }
#endif
    IF( EQ_16( st_ivas->renderer_type, RENDERER_NON_DIEGETIC_DOWNMIX ) )
    {
        mixer_left = ( st_ivas->hDecoderConfig->non_diegetic_pan_gain + 1.f ) * 0.5f;
@@ -2946,12 +2952,6 @@ static ivas_error evs_dec_main(
        v_multc( p_output[0], mixer_rigth, p_output[1], nOutSamples );
        v_multc( p_output[0], mixer_left, p_output[0], nOutSamples );
    }
#ifdef IVAS_FLOAT_FIXED
    FOR( Word16 i = 0; i < nOutSamples; i++ )
    {
        p_output[0][i] = output_16[i];
    }
#endif
    IF( !st_ivas->hDecoderConfig->Opt_tsm )
    {
        ivas_jbm_dec_copy_tc_no_tsm( st_ivas, p_output, nOutSamples );