diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-06-10 16:45:06 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-06-12 11:01:10 +0200 |
commit | 97cfe1d8bd1968143e2ba9aa46ebe9504a835e24 (patch) | |
tree | e68f3a7dd9aa9b56cf6920890fe2f4caec6b98cd /libavutil/imgutils.c | |
parent | 98ea98069b40c34aa7b762096f8f380012a7dd84 (diff) | |
download | ffmpeg-97cfe1d8bd1968143e2ba9aa46ebe9504a835e24.tar.gz |
Convert all AVClass struct declarations to designated initializers.
Diffstat (limited to 'libavutil/imgutils.c')
-rw-r--r-- | libavutil/imgutils.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index 20d06ec175..84abb11656 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -219,7 +219,14 @@ typedef struct ImgUtils { void *log_ctx; } ImgUtils; -static const AVClass imgutils_class = { "IMGUTILS", av_default_item_name, NULL, LIBAVUTIL_VERSION_INT, offsetof(ImgUtils, log_offset), offsetof(ImgUtils, log_ctx) }; +static const AVClass imgutils_class = { + .class_name = "IMGUTILS", + .item_name = av_default_item_name, + .option = NULL, + .version = LIBAVUTIL_VERSION_INT, + .log_level_offset_offset = offsetof(ImgUtils, log_offset), + .parent_log_context_offset = offsetof(ImgUtils, log_ctx), +}; int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx) { |