aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-09-02 23:25:33 +0200
committerDiego Biurrun <diego@biurrun.de>2014-09-16 09:37:14 -0700
commit2dd09ebf5597fd5e4a573bee9cccf21ae821f286 (patch)
tree9cecd594c51421fea716e38510b2cd72c5d48729
parent45ff7c93dd84a254cc96acc589e5ac3d7bd16bce (diff)
downloadffmpeg-2dd09ebf5597fd5e4a573bee9cccf21ae821f286.tar.gz
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.
-rw-r--r--cmdutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 202b288a60..96b40f31a6 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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;
}