Browse Source

cmdutils: Print a more sensible message in show_filters() w/o libavfilter

Also avoid an unused variable warning for compilers w/o av_unused support.
tags/n2.5
Diego Biurrun 11 years ago
parent
commit
2dd09ebf55
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      cmdutils.c

+ 4
- 2
cmdutils.c View File

@@ -1161,12 +1161,14 @@ 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;

printf("Filters:\n");
#if CONFIG_AVFILTER
while ((filter = avfilter_next(filter)))
printf("%-16s %s\n", filter->name, filter->description);
#else
printf("No filters available: libavfilter disabled\n");
#endif
return 0;
}


Loading…
Cancel
Save