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)
74 if (p->
buf[11] != 99 && p->
buf[11] != 1)
90 int sample_rate, channels, codec;
95 sample_rate =
AV_RL16(&header[0]);
96 channels = (header[10] & 0x1) + 1;
136 unsigned int chunk_size;
148 chunk_size =
AV_RL16(&preamble[0]);
155 int out_size =
AV_RL16(&preamble[2]);
158 if ((ret =
avio_read(pb, &pkt->
data[4], chunk_size)) != chunk_size)
159 return ret < 0 ? ret :
AVERROR(EIO);
166 if (ret != chunk_size)