[Mplayer-cvslog] CVS: main/libmpcodecs ad_msadpcm.c,1.7,1.8
Arpi
arpi at thot.banki.hu
Thu Oct 24 01:35:42 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?
yes, at least it plays mphq samples/A-codecs/msadpcm-stereo/scatter.wav
> btw, imho (x) should be cast to uint8_t here for safety ...
yes
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-cvslog
mailing list