100l: you have 2 nibbles per byte, don't divide byte count by 2

Fixes samples/ima_adpcm_stutter/IMAG0006.AVI and another wav file i
have.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10809 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2003-09-03 22:30:30 +00:00
parent e7b04943ad
commit 16a6f6b201
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ static int ms_ima_adpcm_decode_block(unsigned short *output,
if (channels == 1)
for (i = 0;
i < (block_size - MS_IMA_ADPCM_PREAMBLE_SIZE * channels) / 2; i++)
i < (block_size - MS_IMA_ADPCM_PREAMBLE_SIZE * channels); i++)
{
output[i * 2 + 0] = input[MS_IMA_ADPCM_PREAMBLE_SIZE + i] & 0x0F;
output[i * 2 + 1] = input[MS_IMA_ADPCM_PREAMBLE_SIZE + i] >> 4;