Commit fe6d3911 authored by multrus's avatar multrus
Browse files

remove unncessary code increasing i

parent 151cbbfe
Loading
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ Word16 RCcontextMapping_encode2_estimate_no_mem_s17_LCS_fx(
{
    /* Common variables */
    Word16 a1, b1;
    Word16 i, k, pki, lev1;
    Word16 k, pki, lev1;
    UWord16 t;
    Word16 lastnz, lastnz2;
    Word16 rateFlag;
@@ -1250,14 +1250,11 @@ Word16 RCcontextMapping_encode2_estimate_no_mem_s17_LCS_fx(
    /* bits to encode lastnz */
    k = 1;
    move16();
    i = 2;
    move64();

    WHILE( LT_16( k, nt / 2 ) )
    {
        bit_estimate_fx = W_add( bit_estimate_fx, MAKE_NUMBER_QX( 1, Q23 ) );
        k = shl( k, 1 );
        i = add( i, 2 );
        /* check while condition */
    }