lavfi: use designated initializers in avfilter_class
authorAnton Khirnov <anton@khirnov.net>
Mon, 25 Feb 2013 11:09:01 +0000 (12:09 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 16 Mar 2013 04:33:06 +0000 (05:33 +0100)
libavfilter/avfilter.c

index af9d9ee..4985ce9 100644 (file)
@@ -320,10 +320,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)