Commit c84eff58 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

EVS bitexactness issue fix

parent c7bac706
Loading
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -641,13 +641,13 @@ Word16 JB4_getFECoffset(
Word16 JB4_FECoffset(
    JB4_HANDLE h )
{
    IF( LT_32( h->netLossRate_fx, 1638 ) /*0.05 Q15*/ )
    IF( LT_32( h->netLossRate_fx, 1634 ) )
    {
        return 0;
        return (Word16) 0;
    }
    ELSE
    {
        return 1;
        return (Word16) 1;
    }
}

@@ -1404,9 +1404,7 @@ static void JB4_popFromBuffer(
        test();
        IF( lost != 0 && total_rec != 0 )
        {
            Word16 temp, exp;
            temp = BASOP_Util_Divide3232_Scale( lost, total_rec, &exp );
            h->netLossRate_fx = L_shr( temp, exp ); /*Q15*/
            h->netLossRate_fx = divide3232( lost, total_rec );
        }
        ELSE
        {
@@ -1624,7 +1622,7 @@ static void JB4_dropFromBuffer(
        /* separate concealments since last available pop in lost and stretched */
        Word16 exp;
        nStretched = BASOP_Util_Divide3232_Scale( tsDiff, (Word32) h->frameDuration, &exp );
        nStretched = (UWord32) W_shr( nStretched, 15 - exp );
        nStretched = (UWord32) W_shr( nStretched, sub( 15, exp ) );
        assert( h->nLostOrStretched >= nStretched );

        /* convert stretching followed by shrinking to late-loss */