Commit 3ee1f6f1 authored by vaclav's avatar vaclav
Browse files

issue 923: enable external renderer command-line options in UPPER case...

issue 923: enable external renderer command-line options in UPPER case letters; under FIX_923_EXTERNAL_REND_COMMAND_LINE
parent 28f99e63
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@
#define FIX_881_REMOVE_LFE_ADDITION_IN_ISM              /* VA: issue 881: remove LFE addition in ISM format */
#define FIX_887_ARRAY_SIZE_DFT_MDCT_STEREO              /* VA: Fix the definition of buffers/arrays in DFT and MDCT stereo to satisfy gcc v 11.4.0 */
#define FIX_891_PARAMUPMIX_CLEANUP                      /* Dlb: issue 891: remove unneeded code from ParamUpmix */
#define FIX_923_EXTERNAL_REND_COMMAND_LINE              /* VA: issue 923: enable external renderer command-line options in UPPER case letters */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -150,7 +150,11 @@ static int8_t optionMatchesString(

    const char *optionName = stringToOptionName( str );

#ifdef FIX_923_EXTERNAL_REND_COMMAND_LINE
    if ( strncmp( to_upper( (char *) optionName ), to_upper( (char *) opt.props.match ), MAX_OPTION_LENGTH ) == 0 || strncmp( to_upper( (char *) optionName ), to_upper( (char *) opt.props.matchShort ), MAX_OPTION_LENGTH ) == 0 )
#else
    if ( strncmp( optionName, opt.props.match, MAX_OPTION_LENGTH ) == 0 || strncmp( optionName, opt.props.matchShort, MAX_OPTION_LENGTH ) == 0 )
#endif
    {
        return 1;
    }