Commit 9600ad01 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh Committed by Manuel Jander
Browse files

Fix for 3GPP issue 1533: Slightly high MLD for one case of MASA LTV EXT output in BASOP decoder

Link #1533
parent 98e06bac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1368,8 +1368,8 @@ static void FindEmEs_fx(
        temp_q = 0;
        move16();
    }
    log_res = BASOP_Util_Log2( square_res );
    es_em_fx = Mpy_32_32( log_res, 1616107501 ); // 25+30-31
    log_res = L_add( BASOP_Util_Log2( square_res ), L_shl( temp_q, Q25 ) );
    es_em_fx = Mpy_32_32( log_res, 1616107501 /* 5 * (ln(2)/ln(10)) */ ); // 25+30-31
    /* long-term estimate */
    *lt_es_em_fx = L_add( Mpy_32_32( 858993459, *lt_es_em_fx ), Mpy_32_32( 1288490188, es_em_fx ) ); /* Q24 */
    move32();