diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
index 7736d09..39d4023 100644
|
a
|
b
|
static int adx_encode_header(AVCodecContext *avctx, uint8_t *buf, int bufsize)
|
| 108 | 108 | bytestream_put_byte(&buf, 4); /* sample size */ |
| 109 | 109 | bytestream_put_byte(&buf, avctx->channels); /* channels */ |
| 110 | 110 | bytestream_put_be32(&buf, avctx->sample_rate); /* sample rate */ |
| 111 | | bytestream_put_be32(&buf, 0); /* total sample count */ |
| | 111 | bytestream_put_be32(&buf, -1); /* total sample count */ |
| 112 | 112 | bytestream_put_be16(&buf, c->cutoff); /* cutoff frequency */ |
| 113 | 113 | bytestream_put_byte(&buf, 3); /* version */ |
| 114 | 114 | bytestream_put_byte(&buf, 0); /* flags */ |