[MPlayer-cvslog] r31686 - trunk/libao2/ao_pcm.c

reimar subversion at mplayerhq.hu
Sun Jul 11 01:18:45 CEST 2010


Author: reimar
Date: Sun Jul 11 01:18:45 2010
New Revision: 31686

Log:
Remove disabled and pointless code.

Modified:
   trunk/libao2/ao_pcm.c

Modified: trunk/libao2/ao_pcm.c
==============================================================================
--- trunk/libao2/ao_pcm.c	Sun Jul 11 01:11:45 2010	(r31685)
+++ trunk/libao2/ao_pcm.c	Sun Jul 11 01:18:45 2010	(r31686)
@@ -254,18 +254,6 @@ static int get_space(void){
 // return: number of bytes played
 static int play(void* data,int len,int flags){
 
-// let libaf to do the conversion...
-#if 0
-//#if HAVE_BIGENDIAN
-    if (ao_data.format == AFMT_S16_LE) {
-      unsigned short *buffer = (unsigned short *) data;
-      register int i;
-      for(i = 0; i < len/2; ++i) {
-        buffer[i] = le2me_16(buffer[i]);
-      }
-    }
-#endif
-
     if (ao_data.channels == 5 || ao_data.channels == 6 || ao_data.channels == 8) {
         int frame_size = af_fmt2bits(ao_data.format) / 8;
         len -= len % (frame_size * ao_data.channels);


More information about the MPlayer-cvslog mailing list