58 int waveformatextensible;
77 if (waveformatextensible)
100 "requested bits_per_coded_sample (%d) "
101 "and actually stored (%d) differ\n",
138 bytestream_put_le16(&riff_extradata, 1);
139 bytestream_put_le32(&riff_extradata, 2);
140 bytestream_put_le16(&riff_extradata, 1152);
141 bytestream_put_le16(&riff_extradata, 1);
142 bytestream_put_le16(&riff_extradata, 1393);
146 bytestream_put_le16(&riff_extradata, 2);
148 bytestream_put_le32(&riff_extradata, enc->
bit_rate);
150 bytestream_put_le16(&riff_extradata, enc->
channels == 2 ? 1 : 8);
152 bytestream_put_le16(&riff_extradata, 0);
154 bytestream_put_le16(&riff_extradata, 1);
156 bytestream_put_le16(&riff_extradata, 16);
158 bytestream_put_le32(&riff_extradata, 0);
160 bytestream_put_le32(&riff_extradata, 0);
163 bytestream_put_le32(&riff_extradata, 0x9ace0002);
164 bytestream_put_le32(&riff_extradata, 0xaea2f732);
165 bytestream_put_le16(&riff_extradata, 0xacde);
170 bytestream_put_le16(&riff_extradata, frame_size);
177 if (waveformatextensible) {
180 avio_wl16(pb, riff_extradata - riff_extradata_start + 22);
191 avio_wl16(pb, riff_extradata - riff_extradata_start);
193 avio_write(pb, riff_extradata_start, riff_extradata - riff_extradata_start);
204 const AVCodecTag *tags,
int for_asf,
int ignore_extradata)
223 if (!ignore_extradata) {
232 int *au_ssize,
int *au_scale)
235 int audio_frame_size;
241 if (!audio_frame_size)
246 *au_scale = audio_frame_size;
258 gcd =
av_gcd(*au_scale, *au_rate);
265 int len = strlen(str);
277 "IARL",
"IART",
"ICMS",
"ICMT",
"ICOP",
"ICRD",
"ICRP",
"IDIM",
"IDPI",
278 "IENG",
"IGNR",
"IKEY",
"ILGT",
"ILNG",
"IMED",
"INAM",
"IPLT",
"IPRD",
279 "IPRT",
"ITRK",
"ISBJ",
"ISFT",
"ISHP",
"ISMP",
"ISRC",
"ISRF",
"ITCH",