This is a dummy option that is added only for compatibility/consistency with
other command line tools.
---
Sometimes when switching to/from avconv/avprobe/avplay you have to either
add, remove or check the manual for -i.
This patch adds a dummy option so that if you forgot to remove -i from
your avconv line avprobe will not complain. If this sounds reasonable, I can
also add a warning telling user not to use such option.
Cheers,
Vittorio
avprobe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/avprobe.c b/avprobe.c
index 5fc9ad5..1522156 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -44,6 +44,7 @@ static int show_value_unit = 0;
static int use_value_prefix = 0;
static int use_byte_value_binary_prefix = 0;
static int use_value_sexagesimal_format = 0;
+static int ignored_value = 0;
/* globals */
static const OptionDef *options;
@@ -887,6 +888,7 @@ static int opt_pretty(void *optctx, const char *opt, const
char *arg)
static const OptionDef real_options[] = {
#include "cmdutils_common_opts.h"
+ { "i", OPT_BOOL, { &ignored_value }, "this option is ignored" },
{ "f", HAS_ARG, {.func_arg = opt_format}, "force format", "format" },
{ "of", HAS_ARG, {.func_arg = opt_output_format}, "output the document
either as ini or json", "output_format" },
{ "unit", OPT_BOOL, {&show_value_unit},
--
1.9.3 (Apple Git-50)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel