mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 20:00:56 +00:00
Add a comment on shift vs. division
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27259 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
68e6f22bbc
commit
ffc22175d3
@ -171,6 +171,9 @@ static int ms_adpcm_decode_block(unsigned short *output, unsigned char *input,
|
|||||||
upper_nibble ^= 1;
|
upper_nibble ^= 1;
|
||||||
SE_4BIT(snibble);
|
SE_4BIT(snibble);
|
||||||
|
|
||||||
|
// should this really be a division and not a shift?
|
||||||
|
// coefficients were originally scaled by for, which might have
|
||||||
|
// been an optimization for 8-bit CPUs _if_ a shift is correct
|
||||||
predictor = (
|
predictor = (
|
||||||
((sample1[current_channel] * coeff1[current_channel]) +
|
((sample1[current_channel] * coeff1[current_channel]) +
|
||||||
(sample2[current_channel] * coeff2[current_channel])) / 64) +
|
(sample2[current_channel] * coeff2[current_channel])) / 64) +
|
||||||
|
Loading…
Reference in New Issue
Block a user