diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-07-13 14:25:31 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-07-13 14:25:31 +0000 |
commit | f9bd305694747b0bb51700c8fe1745beaaf886e3 (patch) | |
tree | b7426078494a189b2ad4b472abc53cce7a0eae2e /libavcodec | |
parent | 962fe7e1c40830d1d52517000159f2fdd8e408e4 (diff) | |
download | ffmpeg-f9bd305694747b0bb51700c8fe1745beaaf886e3.tar.gz |
clip MS ADPCM predictor range to correct [0..6] range, not [0..7]
Originally committed as revision 14203 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/adpcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 027d2d24d0..0e5160424b 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1025,10 +1025,10 @@ static int adpcm_decode_frame(AVCodecContext *avctx, 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); |