Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-24 02:14:49 +0400
committerPaul B Mahol <onemda@gmail.com>2013-11-24 02:23:52 +0400
commit638d79a9d0805e4863f6cd6cce146e3121a26071 (patch)
tree132e349b89894b299b1ffaf947d8d8716c181eda /ffprobe.c
parentbea93944653f5f9270b5d200b11b2c64fe472914 (diff)
ffprobe: use designated initializer for AVClass
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/ffprobe.c b/ffprobe.c
index ef4ccafe0c..3b6c173523 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 */