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.
This commit is contained in:
Paul B Mahol
2011-12-30 20:00:53 +01:00
committed by Carl Eugen Hoyos
parent 73ba2c1e62
commit ba10207bbe
21 changed files with 107 additions and 131 deletions

View File

@ -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},
};