summaryrefslogtreecommitdiff
path: root/avprobe.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-29 14:37:22 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-30 13:56:25 +0200
commit11d957fbd81288e64408e79ed369446346000b29 (patch)
tree72c1812a15ab34be2908a01de8fec89c27fad2ea /avprobe.c
parentbbcedade008b5471c71122944cf4dee1951138ec (diff)
avtools: remove the distinction between func_arg and func2_arg.
func2_arg is the same as func_arg, except it has one additional parameter. Change all func_arg callbacks to take that parameter (and ignore it).
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/avprobe.c b/avprobe.c
index cb610d89f9..b20c78cd34 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -794,7 +794,7 @@ static void show_usage(void)
printf("\n");
}
-static int opt_format(const char *opt, const char *arg)
+static int opt_format(void *optctx, const char *opt, const char *arg)
{
iformat = av_find_input_format(arg);
if (!iformat) {
@@ -804,7 +804,7 @@ static int opt_format(const char *opt, const char *arg)
return 0;
}
-static int opt_output_format(const char *opt, const char *arg)
+static int opt_output_format(void *optctx, const char *opt, const char *arg)
{
if (!strcmp(arg, "json")) {
@@ -838,7 +838,7 @@ static int opt_output_format(const char *opt, const char *arg)
return 0;
}
-static int opt_show_format_entry(const char *opt, const char *arg)
+static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
{
do_show_format = 1;
nb_fmt_entries_to_show++;
@@ -877,7 +877,7 @@ void show_help_default(const char *opt, const char *arg)
show_help_children(avformat_get_class(), AV_OPT_FLAG_DECODING_PARAM);
}
-static int opt_pretty(const char *opt, const char *arg)
+static int opt_pretty(void *optctx, const char *opt, const char *arg)
{
show_value_unit = 1;
use_value_prefix = 1;