Commit c3a40271 authored by sagnowski's avatar sagnowski
Browse files

Decoder: Require -no_delay_cmp to be present when writing to a JBM trace file

See the following analysis for an explanation why this is the most reasonable solution:
#1361 (comment 82644)
parent 16fd2911
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1513,6 +1513,15 @@ 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