aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-10-03 14:13:17 +0200
committerAnton Khirnov <anton@khirnov.net>2011-10-05 07:52:05 +0200
commit0ba1e1978d4016df42ed481a832e7539ebc48220 (patch)
tree20396c6c6162a15f9c2ef62447ef35b43c977106
parentdd376b1a1235fdf65e8d1ce7b7874915011c4798 (diff)
downloadffmpeg-0ba1e1978d4016df42ed481a832e7539ebc48220.tar.gz
lavc: use designated initializers for av_codec_context_class
-rw-r--r--libavcodec/options.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 0bcdf2a42c..1c5240634b 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -516,7 +516,14 @@ static const AVOption options[]={
#undef D
#undef DEFAULT
-static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options, LIBAVUTIL_VERSION_INT, OFFSET(log_level_offset), .opt_find = opt_find};
+static const AVClass av_codec_context_class = {
+ .class_name = "AVCodecContext",
+ .item_name = context_to_name,
+ .option = options,
+ .version = LIBAVUTIL_VERSION_INT,
+ .log_level_offset_offset = OFFSET(log_level_offset),
+ .opt_find = opt_find,
+};
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){
memset(s, 0, sizeof(AVCodecContext));