[MPlayer-cvslog] CVS: main/libao2 ao_oss.c,1.50,1.51

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Jan 6 18:35:46 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv1479

Modified Files:
	ao_oss.c 
Log Message:
Use AF_FORMAT_S16_NE instead of #ifdef WORDS_BIGENDIAN ...


Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- ao_oss.c	6 Jan 2005 13:15:53 -0000	1.50
+++ ao_oss.c	6 Jan 2005 17:35:43 -0000	1.51
@@ -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




More information about the MPlayer-cvslog mailing list