mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-04 11:38:19 +00:00
cmdutils: slightly better -filters output.
This commit is contained in:
parent
e5644313c5
commit
a5ebd2d987
@ -1453,7 +1453,11 @@ int show_filters(void *optctx, const char *opt, const char *arg)
|
|||||||
int i, j;
|
int i, j;
|
||||||
const AVFilterPad *pad;
|
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
|
#if CONFIG_AVFILTER
|
||||||
while ((filter = avfilter_next(filter))) {
|
while ((filter = avfilter_next(filter))) {
|
||||||
descr_cur = descr;
|
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);
|
*(descr_cur++) = get_media_type_char(pad[j].type);
|
||||||
}
|
}
|
||||||
if (!j)
|
if (!j)
|
||||||
*(descr_cur++) = '|';
|
*(descr_cur++) = ((!i && (filter->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)) ||
|
||||||
|
( i && (filter->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS))) ? 'N' : '|';
|
||||||
}
|
}
|
||||||
*descr_cur = 0;
|
*descr_cur = 0;
|
||||||
printf("%-16s %-10s %s\n", filter->name, descr, filter->description);
|
printf("%-16s %-10s %s\n", filter->name, descr, filter->description);
|
||||||
|
Loading…
Reference in New Issue
Block a user