changeset 15786:99df5428882f

fix illegal read
author reimar
date Mon, 20 Jun 2005 15:10:40 +0000
parents 1d4f60b08be1
children 894fafef6b1a
files libmpcodecs/ad_imaadpcm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_imaadpcm.c	Mon Jun 20 14:35:00 2005 +0000
+++ b/libmpcodecs/ad_imaadpcm.c	Mon Jun 20 15:10:40 2005 +0000
@@ -225,7 +225,7 @@
       output[i * 2 + 1] = input[2 + i] >> 4;
     }
   else
-    for (i = 0; i < QT_IMA_ADPCM_SAMPLES_PER_BLOCK / 2 * 2; i++)
+    for (i = 0; i < QT_IMA_ADPCM_SAMPLES_PER_BLOCK / 2; i++)
     {
       output[i * 4 + 0] = input[2 + i] & 0x0F;
       output[i * 4 + 1] = input[2 + QT_IMA_ADPCM_BLOCK_SIZE + i] & 0x0F;