[FFmpeg-cvslog] r14174 - trunk/libavcodec/adpcm.c
reimar
subversion
Sat Jul 12 09:28:45 CEST 2008
Author: reimar
Date: Sat Jul 12 09:28:45 2008
New Revision: 14174
Log:
10l, forgot to replace a / 256 for r14173.
Fixes MS ADPCM regression test.
Modified:
trunk/libavcodec/adpcm.c
Modified: trunk/libavcodec/adpcm.c
==============================================================================
--- trunk/libavcodec/adpcm.c (original)
+++ trunk/libavcodec/adpcm.c Sat Jul 12 09:28:45 2008
@@ -732,7 +732,7 @@ static inline short adpcm_ms_expand_nibb
{
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;
More information about the ffmpeg-cvslog
mailing list