86 s1 = av_clip_int16(s0);
99 int buf_size = avpkt->
size;
102 const uint8_t *buf = avpkt->
data;
103 int num_blocks, ch, ret;
119 if (buf_size < header_size)
122 buf_size -= header_size;
133 if (buf_size >= 4 && (
AV_RB16(buf) & 0x8000)) {
149 while (num_blocks--) {
150 for (ch = 0; ch < c->
channels; ch++) {
159 samples += BLOCK_SAMPLES * c->
channels;
165 return buf - avpkt->
data;
171 memset(c->
prev, 0,
sizeof(c->
prev));