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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user