lavf: use designated initialisers for all (de)muxers.

It's more readable and less prone to breakage.
This commit is contained in:
Anton Khirnov
2011-07-16 22:18:12 +02:00
parent 6270995667
commit dfc2c4d900
132 changed files with 1311 additions and 1466 deletions

View File

@@ -27,14 +27,10 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
}
AVOutputFormat ff_null_muxer = {
"null",
NULL_IF_CONFIG_SMALL("raw null video format"),
NULL,
NULL,
0,
AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
CODEC_ID_RAWVIDEO,
NULL,
null_write_packet,
.name = "null",
.long_name = NULL_IF_CONFIG_SMALL("raw null video format"),
.audio_codec = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
.video_codec = CODEC_ID_RAWVIDEO,
.write_packet = null_write_packet,
.flags = AVFMT_NOFILE | AVFMT_RAWPICTURE | AVFMT_NOTIMESTAMPS,
};