Commit a16522b0 authored by vaclav's avatar vaclav
Browse files

Merge branch '708-aeid-command-line-options-robustness' of...

Merge branch '708-aeid-command-line-options-robustness' of https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec into 708-aeid-command-line-options-robustness
parents 669754c0 940810dd
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 )