From ff2271267e06a8720fea9661756d05d887f97650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 12 Jul 2008 07:28:45 +0000 Subject: [PATCH] 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 --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;