summaryrefslogtreecommitdiff
path: root/libavcodec/libvorbisenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-06-22 23:32:42 +0000
committerPaul B Mahol <onemda@gmail.com>2012-06-23 00:30:37 +0000
commite9d5c0520ff5093b535b6fa48d6eba41a18c0838 (patch)
treed3860257004e51e6d603440c919ccd3deacbf5d5 /libavcodec/libvorbisenc.c
parent53cec46b255d8587539516f7a013b56a25c7c6d7 (diff)
lavc: use designated initializers for AVClasses
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/libvorbisenc.c')
-rw-r--r--libavcodec/libvorbisenc.c8
1 files changed, 6 insertions, 2 deletions
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)
{