Mercurial > mplayer.hg
diff libao2/afmt.h @ 7719:41e8d0916c60
Fix for audio filters on big endian cpus. It's working now on Solaris SPARC &
x86
author | jkeil |
---|---|
date | Sat, 12 Oct 2002 20:02:01 +0000 |
parents | 02576893af2a |
children | c8677169cc2c |
line wrap: on
line diff
--- a/libao2/afmt.h Sat Oct 12 16:40:56 2002 +0000 +++ b/libao2/afmt.h Sat Oct 12 20:02:01 2002 +0000 @@ -36,3 +36,14 @@ # define AFMT_S32_BE 0x00002000 #endif + +/* native endian formats */ +#ifndef AFMT_S16_NE +# if WORDS_BIGENDIAN +# define AFMT_S16_NE AFMT_S16_BE +# define AFMT_S32_NE AFMT_S32_BE +# else +# define AFMT_S16_NE AFMT_S16_LE +# define AFMT_S32_NE AFMT_S32_LE +# endif +#endif