[Mplayer-cvslog] CVS: main/libmpcodecs ad_msadpcm.c,1.7,1.8
Arpi of Ize
arpi at mplayerhq.hu
Thu Oct 24 01:15:28 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv17115
Modified Files:
ad_msadpcm.c
Log Message:
fixed unaligned access (bus error on sparc)
Index: ad_msadpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_msadpcm.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ad_msadpcm.c 30 Aug 2002 21:44:20 -0000 1.7
+++ ad_msadpcm.c 23 Oct 2002 23:15:25 -0000 1.8
@@ -44,8 +44,9 @@
#define MS_ADPCM_PREAMBLE_SIZE 6
-#define LE_16(x) (le2me_16(*(unsigned short *)(x)))
-#define LE_32(x) (le2me_32(*(unsigned int *)(x)))
+#define LE_16(x) (le2me_16((x)[1]+(256*(x)[0])))
+//#define LE_16(x) (le2me_16(*(unsigned short *)(x)))
+//#define LE_32(x) (le2me_32(*(unsigned int *)(x)))
// useful macros
// clamp a number between 0 and 88
More information about the MPlayer-cvslog
mailing list