diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-08 21:35:16 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-12-18 20:14:54 +0100 |
commit | 77bd1bc73a1946b0f0ce09a7cbb242a65e138d06 (patch) | |
tree | cf677d05d1d812799b285ee812c17ae545d001f0 /avconv.c | |
parent | 0ec1642b60a5b1a4d913e2b9e3899173dff77e7a (diff) | |
download | ffmpeg-77bd1bc73a1946b0f0ce09a7cbb242a65e138d06.tar.gz |
avconv: use new options parser.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -2345,22 +2345,13 @@ static int64_t getmaxrss(void) #endif } -static void parse_cpuflags(int argc, char **argv, const OptionDef *options) -{ - int idx = locate_option(argc, argv, options, "cpuflags"); - if (idx && argv[idx + 1]) - opt_cpuflags(NULL, "cpuflags", argv[idx + 1]); -} - int main(int argc, char **argv) { - OptionsContext o = { 0 }; + int ret; int64_t ti; atexit(exit_program); - reset_options(&o); - av_log_set_flags(AV_LOG_SKIP_REPEATED); parse_loglevel(argc, argv, options); @@ -2374,10 +2365,10 @@ int main(int argc, char **argv) show_banner(); - parse_cpuflags(argc, argv, options); - - /* parse options */ - parse_options(&o, argc, argv, options, opt_output_file); + /* parse options and open all input/output files */ + ret = avconv_parse_options(argc, argv); + if (ret < 0) + exit(1); if (nb_output_files <= 0 && nb_input_files == 0) { show_usage(); |