41 #define AUD_HEADER_SIZE 12
42 #define AUD_CHUNK_PREAMBLE_SIZE 8
43 #define AUD_CHUNK_SIGNATURE 0x0000DEAF
64 if ((field < 8000) || (field > 48000))
69 if (p->
buf[10] & 0xFC)
72 if (p->
buf[11] != 99 && p->
buf[11] != 1)
93 sample_rate =
AV_RL16(&header[0]);
94 channels = (header[10] & 0x1) + 1;
134 unsigned int chunk_size;
146 chunk_size =
AV_RL16(&preamble[0]);
153 int out_size =
AV_RL16(&preamble[2]);
156 if ((ret =
avio_read(pb, &pkt->
data[4], chunk_size)) != chunk_size)
157 return ret < 0 ? ret :
AVERROR(EIO);
164 if (ret != chunk_size)