From fa2a34cd40d124161c748bb0f430dc63c94dd0da Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 3 Apr 2013 09:20:36 +0200 Subject: lavfi: change the filter registering system to match the other libraries Removes an arbitrary hardcoded limit on the number of filters. --- cmdutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmdutils.c') 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; } -- cgit v1.2.3