diff libmpcodecs/ad_dvdpcm.c @ 5825:74ae23061bb7

bigendian fix - thx to Rogrio Brito <linuxconsult@yahoo.com.br>
author arpi
date Thu, 25 Apr 2002 11:03:33 +0000
parents 0f12fb7c1c5d
children 28677d779205
line wrap: on
line diff
--- a/libmpcodecs/ad_dvdpcm.c	Thu Apr 25 09:30:47 2002 +0000
+++ b/libmpcodecs/ad_dvdpcm.c	Thu Apr 25 11:03:33 2002 +0000
@@ -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;
 }