fix for bigendian systems

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10950 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-09-26 19:36:19 +00:00
parent bb6ad56cb5
commit 1d22085841
1 changed files with 2 additions and 0 deletions

View File

@ -48,7 +48,9 @@ while(1){
if(c<0) return -1; /* EOF*/
sh_audio->a_in_buffer[sh_audio->a_in_buffer_len++]=c;
}
#ifndef WORDS_BIGENDIAN
if(sh_audio->format!=0x2000) swab(sh_audio->a_in_buffer,sh_audio->a_in_buffer,8);
#endif
length = a52_syncinfo (sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
if(length>=7 && length<=3840) break; /* we're done.*/
/* bad file => resync*/