59 int waveformatextensible;
77 if (waveformatextensible)
100 "requested bits_per_coded_sample (%d) "
101 "and actually stored (%d) differ\n",
108 blkalign = 576 * (enc->
sample_rate <= (24000 + 32000)/2 ? 1 : 2);
135 bytestream_put_le16(&riff_extradata, 1);
136 bytestream_put_le32(&riff_extradata, 2);
137 bytestream_put_le16(&riff_extradata, 1152);
138 bytestream_put_le16(&riff_extradata, 1);
139 bytestream_put_le16(&riff_extradata, 1393);
142 bytestream_put_le16(&riff_extradata, 2);
144 bytestream_put_le32(&riff_extradata, enc->
bit_rate);
146 bytestream_put_le16(&riff_extradata, enc->
channels == 2 ? 1 : 8);
148 bytestream_put_le16(&riff_extradata, 0);
150 bytestream_put_le16(&riff_extradata, 1);
152 bytestream_put_le16(&riff_extradata, 16);
154 bytestream_put_le32(&riff_extradata, 0);
156 bytestream_put_le32(&riff_extradata, 0);
158 bytestream_put_le32(&riff_extradata, 0x9ace0002);
159 bytestream_put_le32(&riff_extradata, 0xaea2f732);
160 bytestream_put_le16(&riff_extradata, 0xacde);
164 bytestream_put_le16(&riff_extradata, frame_size);
170 if (waveformatextensible) {
174 avio_wl16(pb, riff_extradata - riff_extradata_start + 22);
190 riff_extradata - riff_extradata_start) {
192 avio_wl16(pb, riff_extradata - riff_extradata_start);
194 avio_write(pb, riff_extradata_start, riff_extradata - riff_extradata_start);
206 const AVCodecTag *tags,
int for_asf,
int ignore_extradata)
213 avio_wl32(pb, 40 + (ignore_extradata ? 0 :extradata_size));
229 if (!ignore_extradata) {
232 if (!for_asf && extradata_size & 1)
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);