Commit 2dd09ebf authored by Diego Biurrun's avatar Diego Biurrun

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.
parent 45ff7c93
...@@ -1161,12 +1161,14 @@ int show_protocols(void *optctx, const char *opt, const char *arg) ...@@ -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) 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"); printf("Filters:\n");
#if CONFIG_AVFILTER
while ((filter = avfilter_next(filter))) while ((filter = avfilter_next(filter)))
printf("%-16s %s\n", filter->name, filter->description); printf("%-16s %s\n", filter->name, filter->description);
#else
printf("No filters available: libavfilter disabled\n");
#endif #endif
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment