[Mplayer-cvslog] CVS: main/libmpcodecs ad_imaadpcm.c,1.6,1.7

Roberto Togni CVS rtognimp at mplayerhq.hu
Thu Sep 4 00:31:10 CEST 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv3453

Modified Files:
	ad_imaadpcm.c 
Log Message:
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.


Index: ad_imaadpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_imaadpcm.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ad_imaadpcm.c	4 Nov 2002 20:31:46 -0000	1.6
+++ ad_imaadpcm.c	3 Sep 2003 22:30:30 -0000	1.7
@@ -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;



More information about the MPlayer-cvslog mailing list