Commit a1131a3e authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

add missing scaling factor for mono output

parent 5bd49c4a
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -379,6 +379,10 @@ ivas_error ivas_dec(
    {
        int16_t nchan_ism, sba_ch_idx;

#ifdef FIX_1518
        int16_t sba_mono_flag = ( st_ivas->hDecoderConfig->nchan_out == 1 ) ? 1 : 0;
#endif

        set_s( nb_bits_metadata, 0, MAX_SCE + 1 );
        nchan_ism = st_ivas->nchan_ism;
        if ( st_ivas->ism_mode == ISM_SBA_MODE_DISC )
@@ -443,6 +447,12 @@ ivas_error ivas_dec(

            ivas_sba_dirac_stereo_dec( st_ivas, &p_output[sba_ch_idx], output_frame );
        }
#ifdef FIX_1518
        else if ( sba_mono_flag && st_ivas->ism_mode == ISM_MODE_NONE )
        {
            v_multc( p_output[0], 2.0f, p_output[0], output_frame );
        }
#endif

        /* HP filtering */
        for ( n = 0; n < getNumChanSynthesis( st_ivas ); n++ )