Commit 0df52ff5 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_1397_fix' into 'main'

Fix for 3GPP issue 1397: Stereo Encoder: 48 kbit/s DTX on, click in LTV

See merge request !1332
parents 3360bab9 5f567820
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -2841,14 +2841,17 @@ void FdCngEncodeMDCTStereoSID_fx(
            {
                t1 = BASOP_Util_Log2( lr_in_ptr_fx[ch][p] );                 // Q25
                t2 = L_add( t1, L_shl( lr_in_ptr_e[ch], Q25 ) );             // Q25
                ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23
                move32();
            }
            ELSE
            {
                t2 = 0;
                // 10.f * log10f( EPSILON ) --> -150.0f
                // Subsequent additions / subtractions happen on these numbers, so to avoid saturations
                // this value is set to -128.0f in Q23
                ms_ptr_fx[ch][p] = -ONE_IN_Q30; // Q23
                move32();
            }
            ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23
            move32();
            E_fx[ch] = L_add( E_fx[ch], L_shr( ms_ptr_fx[ch][p], 4 ) ); // Q19
            move32();
        }