aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-09-25 03:02:16 +0200
committerClément Bœsch <ubitux@gmail.com>2011-09-25 10:44:31 +0200
commit6f8c8fa8af9e422e9c3eb863033d0b2b6b43a32a (patch)
treef1709bd5a5530bf71ff2f623e951a24856cad994
parentbf85b909f67a3147e5bc2224ccc1297155102af5 (diff)
downloadffmpeg-6f8c8fa8af9e422e9c3eb863033d0b2b6b43a32a.tar.gz
bit: use explicit struct initializers.
-rw-r--r--libavformat/bit.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c
index 28652460cf..d68616e732 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -82,13 +82,12 @@ static int read_packet(AVFormatContext *s,
}
AVInputFormat ff_bit_demuxer = {
- "bit",
- "G.729 BIT file format",
- 0,
- probe,
- read_header,
- read_packet,
- .extensions = "bit"
+ .name = "bit",
+ .long_name = NULL_IF_CONFIG_SMALL("G.729 BIT file format"),
+ .read_probe = probe,
+ .read_header = read_header,
+ .read_packet = read_packet,
+ .extensions = "bit",
};
#ifdef CONFIG_MUXERS
@@ -123,15 +122,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
}
AVOutputFormat ff_bit_muxer = {
- "bit",
- "G.729 BIT file format",
- "audio/bit",
- "bit",
- 0,
- CODEC_ID_G729,
- CODEC_ID_NONE,
- write_header,
- write_packet,
- .extensions = "bit"
+ .name = "bit",
+ .long_name = NULL_IF_CONFIG_SMALL("G.729 BIT file format"),
+ .mime_type = "audio/bit",
+ .extensions = "bit",
+ .audio_codec = CODEC_ID_G729,
+ .video_codec = CODEC_ID_NONE,
+ .write_header = write_header,
+ .write_packet = write_packet,
};
#endif