0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

fix illegal read

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-06-20 15:10:40 +00:00
parent fe557e19b7
commit fe5d1817e0

View File

@ -225,7 +225,7 @@ static int qt_ima_adpcm_decode_block(unsigned short *output,
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;