1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

swr: use designated initializers for the class.

This commit is contained in:
Clément Bœsch 2011-11-16 00:20:13 +01:00
parent 7e516a11ca
commit f9368466c4

View File

@ -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);