diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c index 689f822981f672185f7fa9b5514084162913e65c..399b238800cb1ff09dbbc4a32550b239fb7b9654 100644 --- a/libavcodec/ac3enc_fixed.c +++ b/libavcodec/ac3enc_fixed.c @@ -34,8 +34,13 @@ #define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED #include "ac3enc_opts_template.c" -static const AVClass ac3enc_class = { "Fixed-Point AC-3 Encoder", av_default_item_name, - ac3fixed_options, LIBAVUTIL_VERSION_INT }; + +static const AVClass ac3enc_class = { + .class_name = "Fixed-Point AC-3 Encoder", + .item_name = av_default_item_name, + .option = ac3fixed_options, + .version = LIBAVUTIL_VERSION_INT, +}; #include "ac3enc_template.c" diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index 747fbeb536ea73790a32c5ca8ed3402cce07c2de..ff324b2bed9a3acdf7d8a1bd51d22566c45ef0bb 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" diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 68c80070dd31651e00d9348ef3598d1cd8c2be1d..fde98d2ba2fa125eb7b13238af4a19ac7700251a 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -42,7 +42,13 @@ static const AVOption options[]={ {"nitris_compat", "encode with Avid Nitris compatibility", offsetof(DNXHDEncContext, nitris_compat), AV_OPT_TYPE_INT, {.dbl = 0}, 0, 1, VE}, {NULL} }; -static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; + +static const AVClass class = { + .class_name = "dnxhd", + .item_name = av_default_item_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; #define LAMBDA_FRAC_BITS 10 diff --git a/libavcodec/eac3enc.c b/libavcodec/eac3enc.c index 409d581eda1b9c995025a1feeedc2c0eb48a3d0b..9f4a6a78f0adb90b1bd8dc593511a59c761281c8 100644 --- a/libavcodec/eac3enc.c +++ b/libavcodec/eac3enc.c @@ -32,9 +32,13 @@ #define AC3ENC_TYPE AC3ENC_TYPE_EAC3 #include "ac3enc_opts_template.c" -static const AVClass eac3enc_class = { "E-AC-3 Encoder", av_default_item_name, - eac3_options, LIBAVUTIL_VERSION_INT }; +static const AVClass eac3enc_class = { + .class_name = "E-AC-3 Encoder", + .item_name = av_default_item_name, + .option = eac3_options, + .version = LIBAVUTIL_VERSION_INT, +}; /** * LUT for finding a matching frame exponent strategy index from a set of diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 7422a35b182ed1d8a9e7e807468ce3913a6691b2..973b3d29c960dfbef32050a699687b4564267a2c 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -65,8 +65,12 @@ static const AVCodecDefault defaults[] = { { NULL }, }; -static const AVClass class = { "libvorbis", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; - +static const AVClass class = { + .class_name = "libvorbis", + .item_name = av_default_item_name, + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; static int vorbis_error_to_averror(int ov_err) { diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index d790b881fb0838afc379196b8b7dab67bc784621..25ecde19a2595b5e87be84888a966cedcbbe289a 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -45,7 +45,12 @@ static const AVOption options[]={ {"top", "top field first", offsetof(RawVideoContext, tff), AV_OPT_TYPE_INT, {.dbl = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM|AV_OPT_FLAG_VIDEO_PARAM}, {NULL} }; -static const AVClass class = { "rawdec", NULL, options, LIBAVUTIL_VERSION_INT }; + +static const AVClass class = { + .class_name = "rawdec", + .option = options, + .version = LIBAVUTIL_VERSION_INT, +}; static const PixelFormatTag pix_fmt_bps_avi[] = { { PIX_FMT_MONOWHITE, 1 },