X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.c;h=8bcc7ac913f898b2da94088b6d7232f6c4f1328d;hb=77f9a81ccaadb34f309dc8922e8939442e4e81aa;hp=a71c7db8cf8b5fee1ef66ffd4cef21835ec3eddd;hpb=ce1059d5c9098d4c2f89288653198b2c03ea8f85;p=ffmpeg diff --git a/cmdutils.c b/cmdutils.c index a71c7db8cf8..8bcc7ac913f 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -1543,7 +1543,8 @@ int show_protocols(void *optctx, const char *opt, const char *arg) int show_filters(void *optctx, const char *opt, const char *arg) { - const AVFilter av_unused(*filter) = NULL; +#if CONFIG_AVFILTER + const AVFilter *filter = NULL; char descr[64], *descr_cur; int i, j; const AVFilterPad *pad; @@ -1556,7 +1557,6 @@ int show_filters(void *optctx, const char *opt, const char *arg) " 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; for (i = 0; i < 2; i++) { @@ -1581,6 +1581,8 @@ int show_filters(void *optctx, const char *opt, const char *arg) filter->process_command ? 'C' : '.', filter->name, descr, filter->description); } +#else + printf("No filters available: libavfilter disabled\n"); #endif return 0; } @@ -1639,19 +1641,19 @@ int show_layouts(void *optctx, const char *opt, const char *arg) const char *name, *descr; printf("Individual channels:\n" - "NAME DESCRIPTION\n"); + "NAME DESCRIPTION\n"); for (i = 0; i < 63; i++) { name = av_get_channel_name((uint64_t)1 << i); if (!name) continue; descr = av_get_channel_description((uint64_t)1 << i); - printf("%-12s%s\n", name, descr); + printf("%-14s %s\n", name, descr); } printf("\nStandard channel layouts:\n" - "NAME DECOMPOSITION\n"); + "NAME DECOMPOSITION\n"); for (i = 0; !av_get_standard_channel_layout(i, &layout, &name); i++) { if (name) { - printf("%-12s", name); + printf("%-14s ", name); for (j = 1; j; j <<= 1) if ((layout & j)) printf("%s%s", (layout & (j - 1)) ? "+" : "", av_get_channel_name(j));