summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-13 19:48:10 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-13 19:48:10 +0200
commit2b44195fc9db4f181e3cb6a18f8823d342bda0b9 (patch)
treee2b80a2549aaf3aafdf58c8a13975b26307314cc /cmdutils.c
parent73180f5b0efd2e97e71c25acebf368db2d6380a0 (diff)
cmdutils: print if filters are sources or sinks.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 991ca4acba..4b625fd2d1 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1660,6 +1660,8 @@ static void show_help_filter(const char *name)
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)
printf(" dynamic (depending on the options)\n");
+ else if (!count)
+ printf(" none (source filter)\n");
printf(" Outputs:\n");
count = avfilter_pad_count(f->outputs);
@@ -1669,6 +1671,8 @@ static void show_help_filter(const char *name)
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS)
printf(" dynamic (depending on the options)\n");
+ else if (!count)
+ printf(" none (sink filter)\n");
if (f->priv_class)
show_help_children(f->priv_class, AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |