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:
authorDiego Biurrun <diego@biurrun.de>2017-06-10 17:45:06 +0300
committerDiego Biurrun <diego@biurrun.de>2017-06-12 12:01:10 +0300
commit97cfe1d8bd1968143e2ba9aa46ebe9504a835e24 (patch)
treee68f3a7dd9aa9b56cf6920890fe2f4caec6b98cd /libavutil/imgutils.c
parent98ea98069b40c34aa7b762096f8f380012a7dd84 (diff)
Convert all AVClass struct declarations to designated initializers.
Diffstat (limited to 'libavutil/imgutils.c')
-rw-r--r--libavutil/imgutils.c9
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)
{