[Mplayer-cvslog] CVS: main/libmpcodecs ad_msadpcm.c,1.7,1.8

Michael Niedermayer michaelni at gmx.at
Thu Oct 24 00:57:51 CEST 2002


Hi

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)[1]+(256*(x)[0])))
does this work on little endian cpus?
btw, imho (x) should be cast to uint8_t here for safety ...

[...]

Michael



More information about the MPlayer-cvslog mailing list