Commit dffd6aa0 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix argument check in encoder and decoder command line parser

parent eb4ee2b3
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1280,14 +1280,14 @@ static bool parseCmdlIVAS_dec(
            else
            {
                tmp = -1; /* this is to avoid a compilation warning */
                fprintf( stderr, "Error: SBA ouput convention must be specified, expecting a number [0-4]!\n\n" );
                fprintf( stderr, "Error: SBA ouput convention must be specified, expecting a number [0-5]!\n\n" );
                usage_dec();
                return false;
            }
            if ( tmp < 0 || tmp > 4 )
            if ( tmp < 0 || tmp > 5 )
            {
                tmp = -1;
                fprintf( stderr, "Error: SBA output convention must be specified, expecting a number in [0,4]!\n\n" );
                fprintf( stderr, "Error: SBA output convention must be specified, expecting a number in [0,5]!\n\n" );
                usage_dec();
                return false;
            }
+3 −3
Original line number Diff line number Diff line
@@ -1219,14 +1219,14 @@ static bool parseCmdlIVAS_enc(
            else
            {
                tmp = -1; /* this is to avoid a compilation warning */
                fprintf( stderr, "Error: SBA input convention must be specified, expecting a number  in [0,4]!\n\n" );
                fprintf( stderr, "Error: SBA input convention must be specified, expecting a number  in [0,5]!\n\n" );
                usage_enc();
                return false;
            }
            if ( tmp < 0 || tmp > 4 )
            if ( tmp < 0 || tmp > 5 )
            {
                tmp = -1; /* this is to avoid a compilation warning */
                fprintf( stderr, "Error: SBA input convention must be specified, expecting a number in [0,4]!\n\n" );
                fprintf( stderr, "Error: SBA input convention must be specified, expecting a number in [0,5]!\n\n" );
                usage_enc();
                return false;
            }