[prev in list] [next in list] [prev in thread] [next in thread]
List: mplayer-cvs
Subject: [Mplayer-cvslog] CVS: main/libmpcodecs ad_liba52.c,1.10,1.11
From: Alex Beregszaszi <alex () mplayerhq ! hu>
Date: 2003-09-26 19:36:43
Message-ID: 200309261936.h8QJahnl008936 () mail ! mplayerhq ! hu
[Download RAW message or body]
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv8888
Modified Files:
ad_liba52.c
Log Message:
fix for bigendian systems
Index: ad_liba52.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_liba52.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ad_liba52.c 17 May 2003 11:35:32 -0000 1.10
+++ ad_liba52.c 26 Sep 2003 19:36:19 -0000 1.11
@@ -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*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic