59 int waveformatextensible;
79 if (waveformatextensible)
102 "requested bits_per_coded_sample (%d) "
103 "and actually stored (%d) differ\n",
139 bytestream_put_le16(&riff_extradata, 1);
140 bytestream_put_le32(&riff_extradata, 2);
141 bytestream_put_le16(&riff_extradata, 1152);
142 bytestream_put_le16(&riff_extradata, 1);
143 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);
162 bytestream_put_le32(&riff_extradata, 0x9ace0002);
163 bytestream_put_le32(&riff_extradata, 0xaea2f732);
164 bytestream_put_le16(&riff_extradata, 0xacde);
168 bytestream_put_le16(&riff_extradata, frame_size);
174 if (waveformatextensible) {
178 avio_wl16(pb, riff_extradata - riff_extradata_start + 22);
194 riff_extradata - riff_extradata_start) {
196 avio_wl16(pb, riff_extradata - riff_extradata_start);
198 avio_write(pb, riff_extradata_start, riff_extradata - riff_extradata_start);
210 const AVCodecTag *tags,
int for_asf,
int ignore_extradata)
229 if (!ignore_extradata) {
238 int *au_ssize,
int *au_scale)
242 int audio_frame_size;
248 if (!audio_frame_size)
253 *au_scale = audio_frame_size;
265 gcd =
av_gcd(*au_scale, *au_rate);
272 int len = strlen(str);
284 "IARL",
"IART",
"ICMS",
"ICMT",
"ICOP",
"ICRD",
"ICRP",
"IDIM",
"IDPI",
285 "IENG",
"IGNR",
"IKEY",
"ILGT",
"ILNG",
"IMED",
"INAM",
"IPLT",
"IPRD",
286 "IPRT",
"ITRK",
"ISBJ",
"ISFT",
"ISHP",
"ISMP",
"ISRC",
"ISRF",
"ITCH",
333 if (
id == av_guid[i].
id)
334 return &(av_guid[i].
guid);