swscale: use designated initializers for AVClass
authorPaul B Mahol <onemda@gmail.com>
Fri, 22 Jun 2012 02:34:34 +0000 (02:34 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 22 Jun 2012 02:34:34 +0000 (02:34 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libswscale/options.c

index ade9888..a396a58 100644 (file)
@@ -66,7 +66,11 @@ static const AVOption options[] = {
     { NULL }
 };
 
-const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
+const AVClass sws_context_class = {
+    .class_name = "SWScaler",
+    .item_name  = sws_context_to_name,
+    .option     = options,
+};
 
 const AVClass *sws_get_class(void)
 {