summaryrefslogtreecommitdiff
path: root/libavutil/file.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-06-10 16:45:06 +0200
committerDiego Biurrun <diego@biurrun.de>2017-06-12 11:01:10 +0200
commit97cfe1d8bd1968143e2ba9aa46ebe9504a835e24 (patch)
treee68f3a7dd9aa9b56cf6920890fe2f4caec6b98cd /libavutil/file.c
parent98ea98069b40c34aa7b762096f8f380012a7dd84 (diff)
downloadffmpeg-97cfe1d8bd1968143e2ba9aa46ebe9504a835e24.tar.gz
Convert all AVClass struct declarations to designated initializers.
Diffstat (limited to 'libavutil/file.c')
-rw-r--r--libavutil/file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavutil/file.c b/libavutil/file.c
index 18a110aeeb..05ed2479a2 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -42,8 +42,12 @@ typedef struct FileLogContext {
} FileLogContext;
static const AVClass file_log_ctx_class = {
- "FILE", av_default_item_name, NULL, LIBAVUTIL_VERSION_INT,
- offsetof(FileLogContext, log_offset), offsetof(FileLogContext, log_ctx)
+ .class_name = "FILE",
+ .item_name = av_default_item_name,
+ .option = NULL,
+ .version = LIBAVUTIL_VERSION_INT,
+ .log_level_offset_offset = offsetof(FileLogContext, log_offset),
+ .parent_log_context_offset = offsetof(FileLogContext, log_ctx),
};
int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,