[Mplayer-cvslog] CVS: main/libmpcodecs ad_msadpcm.c,1.7,1.8
michaelni at gmx.at
Thu Oct 24 00:57:51 CEST 2002
On Thursday 24 October 2002 01:15, Arpi of Ize wrote:
> fixed unaligned access (bus error on sparc)
> -#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)+(256*(x))))
does this work on little endian cpus?
btw, imho (x) should be cast to uint8_t here for safety ...
More information about the MPlayer-cvslog