[FFmpeg-cvslog] ffprobe: use designated initializer for AVClass

Paul B Mahol git at videolan.org
Sat Nov 23 23:25:43 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Nov 23 22:14:49 2013 +0000| [638d79a9d0805e4863f6cd6cce146e3121a26071] | committer: Paul B Mahol

ffprobe: use designated initializer for AVClass

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

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

 ffprobe.c |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index ef4ccaf..3b6c173 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -341,11 +341,10 @@ static void *writer_child_next(void *obj, void *prev)
 }
 
 static const AVClass writer_class = {
-    "Writer",
-    writer_get_name,
-    NULL,
-    LIBAVUTIL_VERSION_INT,
-    .option = writer_options,
+    .class_name = "Writer",
+    .item_name  = writer_get_name,
+    .option     = writer_options,
+    .version    = LIBAVUTIL_VERSION_INT,
     .child_next = writer_child_next,
 };
 
@@ -706,9 +705,9 @@ static const char *name##_get_name(void *ctx)       \
     return #name ;                                  \
 }                                                   \
 static const AVClass name##_class = {               \
-    #name,                                          \
-    name##_get_name,                                \
-    name##_options                                  \
+    .class_name = #name,                            \
+    .item_name  = name##_get_name,                  \
+    .option     = name##_options                    \
 }
 
 /* Default output */



More information about the ffmpeg-cvslog mailing list