Commit 940810dd authored by kinuthia's avatar kinuthia
Browse files

handle case when -aeid is not specified

- case when -aeid is not specified, select first ID from config file
parent 30c2cec0
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2773,6 +2773,14 @@ ivas_error RenderConfigReader_getAcousticEnvironment(
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

#ifdef FIX_708_AEID_COMMAND_LINE
    /* case when -aeid is not specified, select first ID from config file */
    if ( id == 65535 && pRenderConfigReader->nAE > 0 )
    {
        id = (uint16_t) pRenderConfigReader->pAE[0].id;
    }
#endif

    for ( n = 0; n < pRenderConfigReader->nAE; n++ )
    {
        if ( id == pRenderConfigReader->pAE[n].id )