Mercurial > mplayer.hg
changeset 10949:d4d1aa31a1bd
fix for bigendian systems
author | alex |
---|---|
date | Fri, 26 Sep 2003 19:36:19 +0000 |
parents | aebf939834c3 |
children | 1665cee5c281 |
files | libmpcodecs/ad_liba52.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_liba52.c Fri Sep 26 19:21:08 2003 +0000 +++ b/libmpcodecs/ad_liba52.c Fri Sep 26 19:36:19 2003 +0000 @@ -48,7 +48,9 @@ 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*/