OSDN Git Service

h264: use designated initializers for AVClass
authorPaul B Mahol <onemda@gmail.com>
Mon, 15 Oct 2012 13:43:33 +0000 (13:43 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 15 Oct 2012 13:43:33 +0000 (13:43 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/h264.c

index 55522aa..fbc94b8 100644 (file)
@@ -4204,17 +4204,17 @@ static const AVOption h264_options[] = {
 };
 
 static const AVClass h264_class = {
-    "H264 Decoder",
-    av_default_item_name,
-    h264_options,
-    LIBAVUTIL_VERSION_INT,
+    .class_name = "H264 Decoder",
+    .item_name  = av_default_item_name,
+    .option     = h264_options,
+    .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass h264_vdpau_class = {
-    "H264 VDPAU Decoder",
-    av_default_item_name,
-    h264_options,
-    LIBAVUTIL_VERSION_INT,
+    .class_name = "H264 VDPAU Decoder",
+    .item_name  = av_default_item_name,
+    .option     = h264_options,
+    .version    = LIBAVUTIL_VERSION_INT,
 };
 
 AVCodec ff_h264_decoder = {