mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
ddcf031f3b
commit
ff2271267e
@ -732,7 +732,7 @@ static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, char nibble)
|
|||||||
{
|
{
|
||||||
int predictor;
|
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;
|
predictor += (signed)((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;
|
||||||
|
|
||||||
c->sample2 = c->sample1;
|
c->sample2 = c->sample1;
|
||||||
|
Loading…
Reference in New Issue
Block a user