[MPlayer-cvslog] CVS: main/libmpcodecs ad_imaadpcm.c,1.8,1.9

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon Jun 20 17:10:42 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv5477

Modified Files:
	ad_imaadpcm.c 
Log Message:
fix illegal read


Index: ad_imaadpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_imaadpcm.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ad_imaadpcm.c	21 Sep 2004 20:34:46 -0000	1.8
+++ ad_imaadpcm.c	20 Jun 2005 15:10:40 -0000	1.9
@@ -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;




More information about the MPlayer-cvslog mailing list