From 4a7a1b7def03051e16a3ffbbe51d41f227aea0fd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 29 Apr 2011 11:30:02 +0200 Subject: lavf: use designated initializers for AVClasses. --- libavformat/options.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavformat/options.c') diff --git a/libavformat/options.c b/libavformat/options.c index 2192ff6..1e5e506 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -64,7 +64,12 @@ static const AVOption options[]={ #undef D #undef DEFAULT -static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options, LIBAVUTIL_VERSION_INT }; +static const AVClass av_format_context_class = { + .class_name = "AVFormatContext", + .item_name = format_to_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; static void avformat_get_context_defaults(AVFormatContext *s) { -- cgit v1.1