diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-17 11:31:49 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-17 11:57:37 +0200 |
commit | a5ebd2d987c321e2907b560ac902b345fe5f5aad (patch) | |
tree | 8568c35f180d3c7415a243cba519bbef7de5e4d6 /cmdutils.c | |
parent | e5644313c581a4e936d600a0f18b55988f6c9a57 (diff) | |
download | ffmpeg-a5ebd2d987c321e2907b560ac902b345fe5f5aad.tar.gz |
cmdutils: slightly better -filters output.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 2b5ba3355a..35365744a8 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -1453,7 +1453,11 @@ int show_filters(void *optctx, const char *opt, const char *arg) int i, j; const AVFilterPad *pad; - printf("Filters:\n"); + printf("Filters:\n" + " A = Audio input/output\n" + " V = Video input/output\n" + " N = Dynamic number and/or type of input/output\n" + " | = Source or sink filter\n"); #if CONFIG_AVFILTER while ((filter = avfilter_next(filter))) { descr_cur = descr; @@ -1469,7 +1473,8 @@ int show_filters(void *optctx, const char *opt, const char *arg) *(descr_cur++) = get_media_type_char(pad[j].type); } if (!j) - *(descr_cur++) = '|'; + *(descr_cur++) = ((!i && (filter->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)) || + ( i && (filter->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS))) ? 'N' : '|'; } *descr_cur = 0; printf("%-16s %-10s %s\n", filter->name, descr, filter->description); |