allocate_CoreCoder_TCX_fx(): Missing initialization of hTcxDec->q_synth_history_fx
Bug description
In allocate_CoreCoder_TCX_fx(), the Buffer st->hTcxDec->synth_history_fx is beeing set to 0, however the corresponding Q-value is not reset.
IF( st->hTcxDec == NULL )
{
IF( ( st->hTcxDec = (TCX_DEC_HANDLE) malloc( sizeof( TCX_DEC_DATA ) ) ) == NULL )
{
return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Cannot allocate memory for hTcxDec" ) );
}
reset_tcx_overl_buf_fx( st->hTcxDec );
// st->hTcxDec->CngLevelBackgroundTrace_bfi = 0; //initializing to avoid garbage overflow;
set16_fx( st->hTcxDec->syn_OverlFB, 0, L_FRAME48k / 2 );
st->hTcxDec->Q_syn_OverlFB = 0;
move16();
set16_fx( st->hTcxDec->old_synth, 0, OLD_SYNTH_INTERNAL_DEC );
st->hTcxDec->q_old_synth = 0;
move16();
set16_fx( st->hTcxDec->synth_history_fx, 0, L_PROT48k + L_FRAME48k );
}