Mercurial > mplayer.hg
changeset 5825:74ae23061bb7
bigendian fix - thx to Rogrio Brito <linuxconsult@yahoo.com.br>
author | arpi |
---|---|
date | Thu, 25 Apr 2002 11:03:33 +0000 |
parents | dd2f865f0346 |
children | eb147cb5040e |
files | libmpcodecs/ad_dvdpcm.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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; }