51 if (p->
buf[0] ==
'.' && p->
buf[1] ==
's' &&
52 p->
buf[2] ==
'n' && p->
buf[3] ==
'd')
58 #define BLOCK_SIZE 1024
65 unsigned int id, channels, rate;
71 if (tag !=
MKTAG(
'.',
's',
'n',
'd'))
98 if (channels == 0 || channels >= INT_MAX / (
BLOCK_SIZE * bps >> 3)) {
103 if (rate == 0 || rate > INT_MAX) {
143 .read_probe = au_probe,
144 .read_header = au_read_header,
145 .read_packet = au_read_packet,
157 #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
182 if ((ret = put_au_header(pb, s->
streams[0]->
codec)) < 0)
199 avio_wb32(pb, (uint32_t)(file_size - 24));
210 .mime_type =
"audio/basic",
214 .write_header = au_write_header,
216 .write_trailer = au_write_trailer,