summaryrefslogtreecommitdiff
path: root/libavformat/nullenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-07-16 22:18:12 +0200
committerAnton Khirnov <anton@khirnov.net>2011-07-17 06:58:37 +0200
commitdfc2c4d900e48fa788ad9364ac408c01cfb62b94 (patch)
treeeafdab4d3a81a427ddf30862f88af6a650eeaef0 /libavformat/nullenc.c
parent62709956677d648cbf340dccd4549fa62142cb7e (diff)
lavf: use designated initialisers for all (de)muxers.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavformat/nullenc.c')
-rw-r--r--libavformat/nullenc.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c
index 8e38b278b1..79fc02e528 100644
--- a/libavformat/nullenc.c
+++ b/libavformat/nullenc.c
@@ -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,
};