[FFmpeg-cvslog] lavc: use designated initializers for av_codec_context_class
Anton Khirnov
git at videolan.org
Thu Oct 6 03:58:24 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Oct 3 14:13:17 2011 +0200| [0ba1e1978d4016df42ed481a832e7539ebc48220] | committer: Anton Khirnov
lavc: use designated initializers for av_codec_context_class
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ba1e1978d4016df42ed481a832e7539ebc48220
---
libavcodec/options.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 0bcdf2a..1c52406 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));
More information about the ffmpeg-cvslog
mailing list