Commit 638d79a9 authored by Paul B Mahol's avatar Paul B Mahol

ffprobe: use designated initializer for AVClass

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent bea93944
...@@ -341,11 +341,10 @@ static void *writer_child_next(void *obj, void *prev) ...@@ -341,11 +341,10 @@ static void *writer_child_next(void *obj, void *prev)
} }
static const AVClass writer_class = { static const AVClass writer_class = {
"Writer", .class_name = "Writer",
writer_get_name, .item_name = writer_get_name,
NULL, .option = writer_options,
LIBAVUTIL_VERSION_INT, .version = LIBAVUTIL_VERSION_INT,
.option = writer_options,
.child_next = writer_child_next, .child_next = writer_child_next,
}; };
...@@ -706,9 +705,9 @@ static const char *name##_get_name(void *ctx) \ ...@@ -706,9 +705,9 @@ static const char *name##_get_name(void *ctx) \
return #name ; \ return #name ; \
} \ } \
static const AVClass name##_class = { \ static const AVClass name##_class = { \
#name, \ .class_name = #name, \
name##_get_name, \ .item_name = name##_get_name, \
name##_options \ .option = name##_options \
} }
/* Default output */ /* Default output */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment