avfilter: use designated initializer for class
authorPaul B Mahol <onemda@gmail.com>
Tue, 29 May 2012 07:59:21 +0000 (07:59 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 29 May 2012 07:59:21 +0000 (07:59 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/avfilter.c

index 9473c35..38be0e6 100644 (file)
@@ -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)