Commit 33a3adc2 authored by Anjaneyulu Sana's avatar Anjaneyulu Sana
Browse files

Merge branch '3gpp_issue_1239_fix_part1' into 'main'

Partila fix for 3GPP issue 1239: BASOP encoder OSBA: artifacts in discrete object channel

See merge request !1142
parents fd8bc4cd fb7b54f9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -601,6 +601,11 @@ static void getGlobalILD_fx(
            {
                sts[ch]->hTcxEnc->spectrum_e[k] = add( sts[ch]->hTcxEnc->spectrum_e[k], 4 ); // Updating exponent of spectrum as q_ratio is in Q11
            }
            IF( GT_16( nSubframes, 1 ) )
            {
                sts[ch]->hTcxEnc->spectrum_long_e = add( sts[ch]->hTcxEnc->spectrum_long_e, 4 );
                move16();
            }

            FOR( k = 0; k < nSubframes; k++ )
            {
@@ -877,10 +882,12 @@ void apply_MCT_enc_fx(
                    }
                    sts[ch]->hTcxEnc->spectrum_e[1] = add( sts[ch]->hTcxEnc->spectrum_e[0], exp );
                    sts[ch]->hTcxEnc->spectrum_e[0] = add( sts[ch]->hTcxEnc->spectrum_e[0], exp );
                    sts[ch]->hTcxEnc->spectrum_long_e = add( sts[ch]->hTcxEnc->spectrum_long_e, exp );
                    hMCT->mc_global_ild[ch] = 0;
                    move16();
                    move16();
                    move16();
                    move16();
                }
            }
        }