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:
parent
7e8fe4be5f
commit
fa2a34cd40
7 changed files with 48 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue