[MPlayer-users] msadpcm crash with Solaris/SPARC

Diego Zuccato diego at otello.alma.unibo.it
Fri Oct 25 09:11:02 CEST 2002


Hampa Hug wrote:

> > also, you can try to change
> > #define LE_16(x) (le2me_16(*(unsigned short *)(x)))
> > to:
> > #define LE_16(x) (le2me_16(x[0]+(256*x[1])))
> > or maybe:
> > #define LE_16(x) (le2me_16(x[1]+(256*x[0])))
> Maybe it would be a good idea to move these macros to a
> more generally accessible location. The patch to the
> ogg demuxer involved the same problem and I suspect
> that we'll see many more variations of this theme.
What about standard macros like htons() htonl() ntohs() and ntohl() ?
DOes it have sense to reinvent the wheel? :-)

BYtE,
 Diego.




More information about the MPlayer-users mailing list