mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
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:

committed by
Carl Eugen Hoyos

parent
73ba2c1e62
commit
ba10207bbe
@ -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},
|
||||
};
|
||||
|
Reference in New Issue
Block a user