From ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 30 Dec 2011 20:00:53 +0100 Subject: Use more designated initializers. Also remove some pointless NULL/0 assigments. C++ code must be left as it is because named struct initializers are not supported by C++ standard. --- libavcodec/libaacplus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libavcodec/libaacplus.c') diff --git a/libavcodec/libaacplus.c b/libavcodec/libaacplus.c index a5ededbf39..3ab4e0362c 100644 --- a/libavcodec/libaacplus.c +++ b/libavcodec/libaacplus.c @@ -122,13 +122,13 @@ static av_cold int aacPlus_encode_close(AVCodecContext *avctx) } AVCodec ff_libaacplus_encoder = { - "libaacplus", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_AAC, - sizeof(aacPlusAudioContext), - aacPlus_encode_init, - aacPlus_encode_frame, - aacPlus_encode_close, + .name = "libaacplus", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_AAC, + .priv_data_size = sizeof(aacPlusAudioContext), + .init = aacPlus_encode_init, + .encode = aacPlus_encode_frame, + .close = aacPlus_encode_close, .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("libaacplus AAC+ (Advanced Audio Codec with SBR+PS)"), }; -- cgit v1.2.3