diff options
author | Paul B Mahol <onemda@gmail.com> | 2011-12-30 20:00:53 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-30 20:00:53 +0100 |
commit | ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5 (patch) | |
tree | c5602a20dc46f1f6dc9e555d0d1b1926a17cf210 /libavcodec/libaacplus.c | |
parent | 73ba2c1e62a870c7d7b27cd8093ef39447a57903 (diff) | |
download | ffmpeg-ba10207bbe5ebd97b5afc3f19baf4a1ad8f974d5.tar.gz |
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.
Diffstat (limited to 'libavcodec/libaacplus.c')
-rw-r--r-- | libavcodec/libaacplus.c | 14 |
1 files changed, 7 insertions, 7 deletions
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)"), }; |