lavfi: change the filter registering system to match the other libraries

Removes an arbitrary hardcoded limit on the number of filters.
This commit is contained in:
Anton Khirnov
2013-04-03 09:20:36 +02:00
parent 7e8fe4be5f
commit fa2a34cd40
7 changed files with 48 additions and 29 deletions

View File

@@ -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;
}