[FFmpeg-cvslog] swr: use designated initializers for the class.
Clément Bœsch
git at videolan.org
Wed Nov 16 07:27:42 CET 2011
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Nov 16 00:20:13 2011 +0100| [f9368466c4b0e71e7fdaeef90ddd5bf75f71adf2] | committer: Clément Bœsch
swr: use designated initializers for the class.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9368466c4b0e71e7fdaeef90ddd5bf75f71adf2
---
libswresample/swresample.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index aad48d6..3ae4484a 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -61,7 +61,14 @@ static const char* context_to_name(void* ptr) {
return "SWR";
}
-static const AVClass av_class = { "SwrContext", context_to_name, options, LIBAVUTIL_VERSION_INT, OFFSET(log_level_offset), OFFSET(log_ctx) };
+static const AVClass av_class = {
+ .class_name = "SwrContext",
+ .item_name = context_to_name,
+ .option = options,
+ .version = LIBAVUTIL_VERSION_INT,
+ .log_level_offset_offset = OFFSET(log_level_offset),
+ .parent_log_context_offset = OFFSET(log_ctx),
+};
static int resample(SwrContext *s, AudioData *out_param, int out_count,
const AudioData * in_param, int in_count);
More information about the ffmpeg-cvslog
mailing list