mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
bigendian fix - thx to Rogério Brito <linuxconsult@yahoo.com.br>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5826 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
505af4f01d
commit
084d6f073a
@ -55,10 +55,12 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user