Commit 843a8257 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix encoder command line parsing

parent 851575d9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ typedef struct
    IVAS_ENC_BANDWIDTH maxBandwidth;
    const char *bandwithProfileFile;
#ifdef AMBISONICS_CONVENTIONS
    int16_t sba_input_fmt;
    AMBI_FMT sba_input_fmt;
#endif
    IVAS_ENC_DTX_CONFIG dtxConfig;
    int32_t initBitrate;
@@ -1202,10 +1202,10 @@ static bool parseCmdlIVAS_enc(
         *  SBA input convention
         *------------------------------------------------------------------*/
#ifdef AMBISONICS_CONVENTIONS
        else if ( strcmp( argv_to_upper, "SBA_CONVENTION" ) == 0 )
        else if ( strcmp( argv_to_upper, "-SBA_CONVENTION" ) == 0 )
        {
            i++;
            arg->inputFormat = ( int16_t ) AMBI_FMT_ACN_SN3D;
            arg->sba_input_fmt = AMBI_FMT_ACN_SN3D;

            /* SBA configuration */
            if ( i < argc - 4 && is_number( argv[i] ) && sscanf( argv[i], "%d", &tmp ) > 0 )
@@ -1219,6 +1219,7 @@ static bool parseCmdlIVAS_enc(
                usage_enc();
                return false;
            }
            arg->sba_input_fmt = tmp;
        }
#endif