OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
962fe7e
)
clip MS ADPCM predictor range to correct [0..6] range, not [0..7]
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 13 Jul 2008 14:25:31 +0000
(14:25 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 13 Jul 2008 14:25:31 +0000
(14:25 +0000)
Originally committed as revision 14203 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/adpcm.c
patch
|
blob
|
history
diff --git
a/libavcodec/adpcm.c
b/libavcodec/adpcm.c
index
027d2d2
..
0e51604
100644
(file)
--- 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);