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 /libavformat/cafenc.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 'libavformat/cafenc.c')
-rw-r--r-- | libavformat/cafenc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 0dd4b349ca..699c67df7a 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -248,15 +248,15 @@ static int caf_write_trailer(AVFormatContext *s) } AVOutputFormat ff_caf_muxer = { - "caf", - NULL_IF_CONFIG_SMALL("Apple Core Audio Format"), - "audio/x-caf", - "caf", - sizeof(CAFContext), - CODEC_ID_PCM_S16BE, - CODEC_ID_NONE, - caf_write_header, - caf_write_packet, - caf_write_trailer, + .name = "caf", + .long_name = NULL_IF_CONFIG_SMALL("Apple Core Audio Format"), + .mime_type = "audio/x-caf", + .extensions = "caf", + .priv_data_size = sizeof(CAFContext), + .audio_codec = CODEC_ID_PCM_S16BE, + .video_codec = CODEC_ID_NONE, + .write_header = caf_write_header, + .write_packet = caf_write_packet, + .write_trailer = caf_write_trailer, .codec_tag= (const AVCodecTag* const []){ff_codec_caf_tags, 0}, }; |