diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-29 11:30:02 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-29 11:39:34 +0200 |
commit | 4a7a1b7def03051e16a3ffbbe51d41f227aea0fd (patch) | |
tree | 316321fe313a60daee14ec45c0df2b55f203723c /libavformat/options.c | |
parent | 5a43bd5e2609705ee8b834c789fe93399588ca85 (diff) | |
download | ffmpeg-4a7a1b7def03051e16a3ffbbe51d41f227aea0fd.tar.gz |
lavf: use designated initializers for AVClasses.
Diffstat (limited to 'libavformat/options.c')
-rw-r--r-- | libavformat/options.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/options.c b/libavformat/options.c index 2192ff6575..1e5e50604c 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) { |