Commit 6ccfabfa authored by Anjaneyulu Sana's avatar Anjaneyulu Sana
Browse files

Merge branch '3gpp_issue_1262_fix' into 'main'

Fix for 3GPP issue 1262: Saturated signal in discrete multichannel output with...

See merge request !1141
parents b1680a6d 38678a41
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -401,6 +401,8 @@ ivas_error ivas_mct_enc_fx(
            move16();
            st_ivas->hCPE[cpe_id]->hCoreCoder[ch]->hTcxEnc->spectrum_e[1] = sub( 31, q_spec );
            move16();
            st_ivas->hCPE[cpe_id]->hCoreCoder[ch]->hTcxEnc->spectrum_long_e = sub( 31, q_spec );
            move16();

            IF( st_ivas->hCPE[cpe_id]->hCoreCoder[ch]->last_core == ACELP_CORE )
            {
+5 −0
Original line number Diff line number Diff line
@@ -2672,6 +2672,11 @@ void ivas_mdct_quant_coder_fx(
            st->hTcxEnc->spectrum_e[n] = min_shift;
            move16();
        }
        if ( GT_16( nSubframes, 1 ) )
        {
            st->hTcxEnc->spectrum_long_e = min_shift;
            move16();
        }
    }

    EstimateStereoTCXNoiseLevel_fx( sts, quantized_spectrum_fx, gain_tcx_fx, gain_tcx_e, L_frame, noiseFillingBorder, hm_active, ignore_chan, fac_ns_fx, param_core, MCT_flag );