# HG changeset patch # User reimar # Date 1119280240 0 # Node ID 99df5428882f97917d9caab00de8768378752a98 # Parent 1d4f60b08be14f54c9252bfd9aa8183a3eab370d fix illegal read diff -r 1d4f60b08be1 -r 99df5428882f libmpcodecs/ad_imaadpcm.c --- 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;