[FFmpeg-cvslog] h264: use designated initializers for AVClass

Paul B Mahol git at videolan.org
Mon Oct 15 16:07:48 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Oct 15 13:43:33 2012 +0000| [011f3892ff3533c0b1157fdc614362ab31b2fe8f] | committer: Paul B Mahol

h264: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=011f3892ff3533c0b1157fdc614362ab31b2fe8f
---

 libavcodec/h264.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 55522aa..fbc94b8 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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 = {



More information about the ffmpeg-cvslog mailing list