Mercurial > mplayer.hg
changeset 14404:e4a52af25ee4
Use AF_FORMAT_S16_NE instead of #ifdef WORDS_BIGENDIAN ...
author | reimar |
---|---|
date | Thu, 06 Jan 2005 17:35:43 +0000 |
parents | 5dac1eeb8d6b |
children | db75b76c11b2 |
files | libao2/ao_oss.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_oss.c Thu Jan 06 17:08:52 2005 +0000 +++ b/libao2/ao_oss.c Thu Jan 06 17:35:43 2005 +0000 @@ -283,20 +283,15 @@ if (oss_format == -1) { #ifdef WORDS_BIGENDIAN oss_format=AFMT_S16_BE; - format=AF_FORMAT_S16_BE; #else oss_format=AFMT_S16_LE; - format=AF_FORMAT_S16_LE; #endif + format=AF_FORMAT_S16_NE; } if( ioctl(audio_fd, SNDCTL_DSP_SETFMT, &oss_format)<0 || oss_format != format2oss(format)) if(format == AF_FORMAT_AC3){ mp_msg(MSGT_AO,MSGL_WARN, MSGTR_AO_OSS_CantSetAC3, dsp); -#ifdef WORDS_BIGENDIAN - format=AF_FORMAT_S16_BE; -#else - format=AF_FORMAT_S16_LE; -#endif + format=AF_FORMAT_S16_NE; goto ac3_retry; } #if 0