Commit 47c3034c authored by Arash Azizi's avatar Arash Azizi
Browse files

Issue 2551: Making more changes in the function to see if the current errors...

Issue 2551: Making more changes in the function to see if the current errors originate from this part or other parts
parent 699a595e
Loading
Loading
Loading
Loading
Loading
+29 −2
Original line number Diff line number Diff line
@@ -1415,6 +1415,8 @@ void tcx_scalar_quantization_fx(
    }
#endif // FIX_BASOP_2551_HARM_SCALAR_QUAN
    i = sub( L_frame, 1 );
#ifndef FIX_BASOP_2551_HARM_SCALAR_QUAN

    IF(memQuantZeros_fx != NULL)
    {
        test();
@@ -1426,6 +1428,31 @@ void tcx_scalar_quantization_fx(
        }
    }

#else
    if (EQ_16(element_mode, EVS_MONO)) {
        test();
        WHILE((memQuantZeros_fx[i] != 0) && (LT_32(L_abs(L_shl(x[i], tmp16)), tmp32)))
        {
            test();
            xq[i] = 0;
            move16();
            i = sub(i, 1);
        }
    }
    else {
        IF(memQuantZeros_fx != NULL)
        {
            test();
            FOR(; ((memQuantZeros_fx[i] != 0) && (L_abs(x[i]) < tmp32)); i--)
            {
                test();
                xq[i] = 0;
                move16();
            }
        }
    }
#endif // !FIX_BASOP_2551_HARM_SCALAR_QUAN

    /* invert gain */
    gain = Inv16( gain, &gain_e );