[Mplayer-cvslog] CVS: main/libmpcodecs ad_dvdpcm.c,1.1,1.2

Arpi of Ize arpi at mplayerhq.hu
Thu Apr 25 13:03:35 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv25873

Modified Files:
	ad_dvdpcm.c 
Log Message:
bigendian fix - thx to Rogério Brito <linuxconsult at yahoo.com.br>

Index: ad_dvdpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_dvdpcm.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ad_dvdpcm.c	25 Mar 2002 21:06:01 -0000	1.1
+++ ad_dvdpcm.c	25 Apr 2002 11:03:33 -0000	1.2
@@ -55,10 +55,12 @@
 {
   int j,len;
   len=demux_read_data(sh_audio->ds,buf,(minlen+3)&(~3));
+#ifndef WORDS_BIGENDIAN
   for(j=0;j<len;j+=2){
     char x=buf[j];
     buf[j]=buf[j+1];
     buf[j+1]=x;
   }
+#endif
   return len;
 }




More information about the MPlayer-cvslog mailing list