Skip to content

crash at 32 kbps

Basic info

Bug description

When an unvoiced frame is coded at 32 kbps, bwe_exc_fx is not defined and should not be updated, st->hBWE_TD is NULL

    IF( st->hBWE_TD != NULL )
    {
        bwe_exc_fx = old_bwe_exc_fx + PIT16k_MAX * 2;                        /* pointer to BWE excitation signal in the current frame */
        Copy( st->hBWE_TD->old_bwe_exc_fx, old_bwe_exc_fx, PIT16k_MAX * 2 ); // Q_new
    }
    ELSE
    {
        bwe_exc_fx = NULL;
    }

so in the function encod_unvoiced_ivas_fx() the following line is missing :

    if ( st->hBWE_TD != NULL )
   {
       interp_code_5over2_fx()  Ln 483
       ...

image

Ways to reproduce

IVAS_cod -STEREO 2 32000 48 testv\stvST48c.wav bit16400