87 s1 = av_clip_int16(s0);
100 int buf_size = avpkt->
size;
103 const uint8_t *buf = avpkt->
data;
104 int num_blocks, ch, ret;
120 if (buf_size < header_size)
123 buf_size -= header_size;
134 if (buf_size >= 4 && (
AV_RB16(buf) & 0x8000)) {
150 while (num_blocks--) {
151 for (ch = 0; ch < c->
channels; ch++) {
160 samples += BLOCK_SAMPLES * c->
channels;
166 return buf - avpkt->
data;
172 memset(c->
prev, 0,
sizeof(c->
prev));