changeset 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 fb66c426cd91
children 304c94c89359
files libmpcodecs/ad_imaadpcm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;