Skip to content

Crash in vlpc_2st_dec() at 96kbps ISM1

with 1f935c16 and the following bitstream:

no_s_-ism_1_NULL_96000_32.zip

there is a crash in the function vlpc_2st_dec() at Ln35

    /* quantize */
    AVQ_dec_lpc(indx, xq, 2);
    /* quantized lsf */
    FOR (i=0; i<M; i++)
    {
        lsfq[i] = add(lsfq[i], shl(mult_r(w[i], shl(xq[i],10)),2));                         /*14Q1*1.28*/ 	move16();
    }

The assert is raised during shl(xq[i],10). Xq[i] containing 32. My guess is that saturation (shl_sat) could be allowed here, but @vasilache please verify and confirm (or not).