diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-05 00:03:59 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-05 13:21:06 +0200 |
commit | b4af3cf3470a14626e5d2f40ce3c88bfdd0c8561 (patch) | |
tree | d79d182f147ac404b96d57cb1629a3cb71c6f363 /cmdutils.c | |
parent | 96f931adf75967dc86fbf3ee21517e539d0a6e50 (diff) | |
download | ffmpeg-b4af3cf3470a14626e5d2f40ce3c88bfdd0c8561.tar.gz |
cmdutils: remove unnecessary OPT_DUMMY implementation
The -i INPUT option can be implemented more cleanly by using a
function option, which can easily be done now that the
parse_arg_function passed to parse_options has a standard signature.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 2bf4e03ac8..4f27f50f40 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -273,8 +273,6 @@ unknown_opt: *po->u.int64_arg = parse_number_or_die(opt, arg, OPT_INT64, INT64_MIN, INT64_MAX); } else if (po->flags & OPT_FLOAT) { *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -INFINITY, INFINITY); - } else if (po->flags & OPT_DUMMY) { - /* Do nothing for this option */ } else { if (po->u.func_arg(opt, arg) < 0) { fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt); |