Commit 190d88c2 authored by sagnowski's avatar sagnowski
Browse files

Revert "Initialize decoder struct earlier to avoid unititalized pointers"

This reverts commit 259d99f1.
parent 259d99f1
Loading
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -110,9 +110,6 @@ ivas_error IVAS_DEC_Open(
    float no_diegetic_pan )
{
    IVAS_DEC_HANDLE hIvasDec;
#ifdef FIX_I98_HANDLES_TO_NULL
    ivas_error error;
#endif

    if ( phIvasDec == NULL )
    {
@@ -149,13 +146,7 @@ ivas_error IVAS_DEC_Open(
    hIvasDec->prev_ft_speech = 1; /* RXDTX handeler previous frametype flag for G.192 format AMRWB SID_FIRST detection */
    hIvasDec->CNG = 0;            /* RXDTX handler CNG = 1, no CNG = 0*/

#ifdef FIX_I98_HANDLES_TO_NULL
    /* Set decoder parameters to initial values */
    if ( ( error = ivas_init_decoder_front( hIvasDec->st_ivas ) ) != IVAS_ERR_OK )
    {
        return error;
    }
#else
#ifndef FIX_I98_HANDLES_TO_NULL
    /* initialize pointers to handles */
    ivas_initialize_handles_dec( hIvasDec->st_ivas );
#endif
@@ -464,13 +455,11 @@ ivas_error IVAS_DEC_Configure(
    hDecoderConfig->Opt_Headrotation = enableHeadRotation;
    hDecoderConfig->Opt_HRTF_binary = hrtfReaderEnabled;

#ifndef FIX_I98_HANDLES_TO_NULL
    /* Set decoder parameters to initial values */
    if ( ( error = ivas_init_decoder_front( st_ivas ) ) != IVAS_ERR_OK )
    {
        return error;
    }
#endif

    if ( hIvasDec->mode == IVAS_DEC_MODE_EVS )
    {