Commit 403ab03d authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

make scaling in ivas_sba_dirac_stereo_dec conditional on the ISM mode

parent b4edaaa8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@
/* any switch which is non-be wrt. TS 26.258 V3.0 */

#define FIX_2432_ISM_SPIKES_16KHZ                       /* VA: basop issue 2432: fix spikes in ISM decoding at 16kHz output sampling rate */
#define FIX_1518

/* ##################### End NON-BE switches ########################### */

+8 −3
Original line number Diff line number Diff line
@@ -910,11 +910,16 @@ void ivas_sba_dirac_stereo_dec(
    synchro_synthesis( st_ivas->hDecoderConfig->ivas_total_brate, hCPE, output, output_frame, 1 /*st_ivas->sba_dirac_stereo_flag*/ );

    /* output scaling */
#ifdef FIX_1518
    if (st_ivas->ism_mode == ISM_SBA_MODE_DISC)
#endif
    {
        if ( !sba_mono_flag )
        {
            v_multc( output[0], 0.5f, output[0], output_frame );
            v_multc( output[1], 0.5f, output[1], output_frame );
        }
    }

    /* delay HB synth */
    if ( st_ivas->nchan_transport == 1 )