Skip to content

basop assert in expand_range()

While running tests here, I got an assert with the following bitsteam: sp-noi.aunclr.file43_32kHz_STEREO_16400.bit

In the code, it goes up to the file fd_cng-com_fx.c, function exand_range() at Ln 353 :

    FOR (i=0; i < len; i++)
    {
   >>>> out[i] = L_sub(BASOP_Util_InvLog2(L_deposit_h(sub(in[i],tmp))),one_s);  <<<<< 
        move32();
        if ( out[i] == 0 )
        {
            out[i] = tmp32;
            move32();
        }
    }

On my computer, the assert happens in the sub() where in[i] = -2680 and tmp = 30280.

The decoder command line is :

IVAS_dec STEREO 32 sp-noi.aunclr.file43_32kHz_STEREO_16400.bit syn

Edited by vaillancour