summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-03 09:20:36 +0200
committerAnton Khirnov <anton@khirnov.net>2013-04-11 20:44:03 +0200
commitfa2a34cd40d124161c748bb0f430dc63c94dd0da (patch)
tree149c1a579d496d8331ffca26d9b750bdf870f5f1 /cmdutils.c
parent7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa (diff)
lavfi: change the filter registering system to match the other libraries
Removes an arbitrary hardcoded limit on the number of filters.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdutils.c b/cmdutils.c
index ff4b0270c3..7084faed41 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1130,12 +1130,12 @@ int show_protocols(void *optctx, const char *opt, const char *arg)
int show_filters(void *optctx, const char *opt, const char *arg)
{
- AVFilter av_unused(**filter) = NULL;
+ const AVFilter av_unused(*filter) = NULL;
printf("Filters:\n");
#if CONFIG_AVFILTER
- while ((filter = av_filter_next(filter)) && *filter)
- printf("%-16s %s\n", (*filter)->name, (*filter)->description);
+ while ((filter = avfilter_next(filter)))
+ printf("%-16s %s\n", filter->name, filter->description);
#endif
return 0;
}