diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 9473c355fe..38be0e613b 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -373,10 +373,9 @@ static const char *filter_name(void *p) } static const AVClass avfilter_class = { - "AVFilter", - filter_name, - NULL, - LIBAVUTIL_VERSION_INT, + .class_name = "AVFilter", + .item_name = filter_name, + .version = LIBAVUTIL_VERSION_INT, }; int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)