Browse code

bit: use explicit struct initializers.

Clément Bœsch authored on 2011/09/25 10:02:16
Showing 1 changed files
... ...
@@ -82,13 +82,12 @@ static int read_packet(AVFormatContext *s,
82 82
 }
83 83
 
84 84
 AVInputFormat ff_bit_demuxer = {
85
-    "bit",
86
-    "G.729 BIT file format",
87
-    0,
88
-    probe,
89
-    read_header,
90
-    read_packet,
91
-    .extensions = "bit"
85
+    .name        = "bit",
86
+    .long_name   = NULL_IF_CONFIG_SMALL("G.729 BIT file format"),
87
+    .read_probe  = probe,
88
+    .read_header = read_header,
89
+    .read_packet = read_packet,
90
+    .extensions  = "bit",
92 91
 };
93 92
 
94 93
 #ifdef CONFIG_MUXERS
... ...
@@ -123,15 +122,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
123 123
 }
124 124
 
125 125
 AVOutputFormat ff_bit_muxer = {
126
-    "bit",
127
-    "G.729 BIT file format",
128
-    "audio/bit",
129
-    "bit",
130
-    0,
131
-    CODEC_ID_G729,
132
-    CODEC_ID_NONE,
133
-    write_header,
134
-    write_packet,
135
-    .extensions = "bit"
126
+    .name         = "bit",
127
+    .long_name    = NULL_IF_CONFIG_SMALL("G.729 BIT file format"),
128
+    .mime_type    = "audio/bit",
129
+    .extensions   = "bit",
130
+    .audio_codec  = CODEC_ID_G729,
131
+    .video_codec  = CODEC_ID_NONE,
132
+    .write_header = write_header,
133
+    .write_packet = write_packet,
136 134
 };
137 135
 #endif