mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
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:
parent
e7b04943ad
commit
16a6f6b201
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user