changeset 7246:c9dc58950620 libavcodec

10l, forgot to replace a / 256 for r14173. Fixes MS ADPCM regression test.
author reimar
date Sat, 12 Jul 2008 07:28:45 +0000
parents b79a3cd9ed94
children 35744b4e5082
files adpcm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/adpcm.c	Fri Jul 11 21:38:42 2008 +0000
+++ b/adpcm.c	Sat Jul 12 07:28:45 2008 +0000
@@ -732,7 +732,7 @@
 {
     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;