From e9d5c0520ff5093b535b6fa48d6eba41a18c0838 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 22 Jun 2012 23:32:42 +0000 Subject: lavc: use designated initializers for AVClasses Signed-off-by: Paul B Mahol --- libavcodec/ac3enc_float.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libavcodec/ac3enc_float.c') diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index 747fbeb536..ff324b2bed 100644 --- a/libavcodec/ac3enc_float.c +++ b/libavcodec/ac3enc_float.c @@ -36,8 +36,12 @@ #if CONFIG_AC3_ENCODER #define AC3ENC_TYPE AC3ENC_TYPE_AC3 #include "ac3enc_opts_template.c" -static const AVClass ac3enc_class = { "AC-3 Encoder", av_default_item_name, - ac3_options, LIBAVUTIL_VERSION_INT }; +static const AVClass ac3enc_class = { + .class_name = "AC-3 Encoder", + .item_name = av_default_item_name, + .option = ac3_options, + .version = LIBAVUTIL_VERSION_INT, +}; #endif #include "ac3enc_template.c" -- cgit v1.2.3