mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
lavf: use designated initialisers for all (de)muxers.
It's more readable and less prone to breakage.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user