Accessing non-existing variable (NULL handle)
with 0c11047f and the following bitstream,
sp-noi.aunclr.file21_-stereo_-dtx_32000_32.bit
the decoder tries to access a variable declared in a state that is not allocated. The problem happens in the function stereo_switching_dec() around Ln4018, when the variable prevTargetGain_fx is access from an none allocated state (hStereoDftDmx is NULL)
IF( hCPE->hStereoDftDmx->prevTargetGain_fx == ONE_IN_Q29 )
{
tmpF_fx = ONE_IN_Q27;
}
ELSE
{
Word16 temp_b = (Word16) L_shr( hCPE->hStereoDftDmx->prevTargetGain_fx, 16 );
Word16 temp_b_q = 2;
tmpF_fx = Inv16( temp_b, &temp_b_q );
tmpF_fx = L_shl( tmpF_fx, ( 31 - 4 ) - ( 15 - temp_b_q ) );
}
Edited by vaillancour