Commit 491450dd authored by sagnowski's avatar sagnowski
Browse files

Do not require -no_delay_cmp to be present when writing to a JBM trace file when in EVS mode

parent af5ba638
Loading
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -1513,15 +1513,6 @@ static bool parseCmdlIVAS_dec(

    } /* end of while  */

#ifdef SUPPORT_JBM_TRACEFILE
    /* Validate options that depend on other options */
    if ( arg->jbmTraceFilename != NULL && arg->delayCompensationEnabled )
    {
        fprintf( stderr, "Error: Writing to a JBM trace file requires delay compensation to be disabled with -no_delay_cmp\n\n" );
        usage_dec();
        return false;
    }
#endif

    /*-----------------------------------------------------------------*
     * Mandatory input arguments
@@ -1626,6 +1617,18 @@ static bool parseCmdlIVAS_dec(
        return false;
    }

#ifdef SUPPORT_JBM_TRACEFILE
    /* Validate options that depend on other options */
    if ( arg->jbmTraceFilename != NULL && arg->delayCompensationEnabled
            /* This decMode check should be removed once timestamp sync issues between JBM trace and audio are fixed in EVS */
            && arg->decMode != IVAS_DEC_MODE_EVS )
    {
        fprintf( stderr, "Error: Writing to a JBM trace file requires delay compensation to be disabled with -no_delay_cmp\n\n" );
        usage_dec();
        return false;
    }
#endif

    return true;
}