mirror of https://github.com/mpv-player/mpv
fix for bigendian systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10950 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bb6ad56cb5
commit
1d22085841
|
@ -48,7 +48,9 @@ while(1){
|
||||||
if(c<0) return -1; /* EOF*/
|
if(c<0) return -1; /* EOF*/
|
||||||
sh_audio->a_in_buffer[sh_audio->a_in_buffer_len++]=c;
|
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);
|
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);
|
length = a52_syncinfo (sh_audio->a_in_buffer, &flags, &sample_rate, &bit_rate);
|
||||||
if(length>=7 && length<=3840) break; /* we're done.*/
|
if(length>=7 && length<=3840) break; /* we're done.*/
|
||||||
/* bad file => resync*/
|
/* bad file => resync*/
|
||||||
|
|
Loading…
Reference in New Issue