Mercurial > libavcodec.hg
changeset 7259:9de4bc7d4938 libavcodec
clip MS ADPCM predictor range to correct [0..6] range, not [0..7]
author | reimar |
---|---|
date | Sun, 13 Jul 2008 14:25:31 +0000 |
parents | 48c9043b1372 |
children | 3ec34b551aae |
files | adpcm.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/adpcm.c Sun Jul 13 14:12:51 2008 +0000 +++ b/adpcm.c Sun Jul 13 14:25:31 2008 +0000 @@ -1025,10 +1025,10 @@ n = buf_size - 7 * avctx->channels; if (n < 0) return -1; - block_predictor[0] = av_clip(*src++, 0, 7); + block_predictor[0] = av_clip(*src++, 0, 6); block_predictor[1] = 0; if (st) - block_predictor[1] = av_clip(*src++, 0, 7); + block_predictor[1] = av_clip(*src++, 0, 6); c->status[0].idelta = (int16_t)bytestream_get_le16(&src); if (st){ c->status[1].idelta = (int16_t)bytestream_get_le16(&src);