Mercurial > mplayer.hg
diff libmpcodecs/ad_imaadpcm.c @ 10808:9883dfced49c
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.
author | rtognimp |
---|---|
date | Wed, 03 Sep 2003 22:30:30 +0000 |
parents | d2d2e01343ca |
children | 9d0b052c4f74 |
line wrap: on
line diff
--- a/libmpcodecs/ad_imaadpcm.c Wed Sep 03 19:26:33 2003 +0000 +++ b/libmpcodecs/ad_imaadpcm.c Wed Sep 03 22:30:30 2003 +0000 @@ -265,7 +265,7 @@ 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;