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/libvorbisenc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libavcodec/libvorbisenc.c') diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 7422a35b18..973b3d29c9 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) { -- cgit v1.2.3