Commit 1c14dca5 authored by Fiona Glaser's avatar Fiona Glaser

Actually error out if preset/tune/profile is invalid

Got lost somewhere in the move to libx264-based presets.
parent d43e46cf
......@@ -827,7 +827,8 @@ static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt )
return -1;
}
x264_param_default_preset( param, preset, tune );
if( x264_param_default_preset( param, preset, tune ) < 0 )
return -1;
/* Parse command line options */
for( optind = 0;; )
......@@ -987,7 +988,8 @@ generic_option:
x264_param_apply_fastfirstpass( param );
/* Apply profile restrictions. */
x264_param_apply_profile( param, profile );
if( x264_param_apply_profile( param, profile ) < 0 )
return -1;
/* Get the file name */
if( optind > argc - 1 || !output_filename )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment