49 for (i = 0, j = 0; j < 32; i += channels, j++) {
60 if (max == 0 && min == 0) {
67 if (max / 7 > -min / 8)
81 for (i = 0, j = 0; j < 32; i += channels, j++) {
98 #define HEADER_SIZE 36
104 bytestream_put_be16(&buf, 0x8000);
106 bytestream_put_byte(&buf, 3);
108 bytestream_put_byte(&buf, 4);
109 bytestream_put_byte(&buf, avctx->
channels);
111 bytestream_put_be32(&buf, 0);
112 bytestream_put_be16(&buf, c->
cutoff);
113 bytestream_put_byte(&buf, 3);
114 bytestream_put_byte(&buf, 0);
115 bytestream_put_be32(&buf, 0);
116 bytestream_put_be32(&buf, 0);
117 bytestream_put_be16(&buf, 0);
144 const int16_t *samples = (
const int16_t *)frame->
data[0];
146 int ch, out_size,
ret;
163 for (ch = 0; ch < avctx->
channels; ch++) {