[MPlayer-users] msadpcm crash with Solaris/SPARC

Moritz Bunkus moritz at bunkus.org
Fri Oct 25 09:40:02 CEST 2002


Hi.

> What about standard macros like htons() htonl() ntohs() and ntohl() ?
> DOes it have sense to reinvent the wheel? :-)

The problem is that the Sparc processors cannot read 16bit words from
addresses that are not aligned to 32bit. Therefore the macros above use
two 8bit loads which don't have to be aligned to anything. It's not a
problem of big endian vs little endian.

-- 
 ==> Ciao, Mosu (Moritz Bunkus)




More information about the MPlayer-users mailing list