summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-07-12 07:28:45 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-07-12 07:28:45 +0000
commitff2271267e06a8720fea9661756d05d887f97650 (patch)
treeba190268f75d656fdf07dadb312d8b9ceb005b46
parentddcf031f3b8241aa16726cac2e3761b22c4d591d (diff)
10l, forgot to replace a / 256 for r14173.
Fixes MS ADPCM regression test. Originally committed as revision 14174 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 06dfdcc734..f37c10e0f5 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -732,7 +732,7 @@ static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, char nibble)
{
int predictor;
- predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 256;
+ predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64;
predictor += (signed)((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;
c->sample2 = c->sample1;