[MPlayer-cvslog] CVS: main/libmpcodecs ad_faad.c,1.18,1.19

Nico Sabbi CVS syncmail at mplayerhq.hu
Sun Jun 12 15:30:43 CEST 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv11252

Modified Files:
	ad_faad.c 
Log Message:
fixed wrong binary mask: it precluded the syncword of adts-4 from being recognized as valid

Index: ad_faad.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_faad.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- ad_faad.c	29 Mar 2005 17:59:08 -0000	1.18
+++ ad_faad.c	12 Jun 2005 13:30:40 -0000	1.19
@@ -53,7 +53,7 @@
   mp_msg(MSGT_DECAUDIO,MSGL_V, "\nAAC_PROBE: %d bytes\n", len);
   while(i <= len-4) {
     if(
-       ((buffer[i] == 0xff) && ((buffer[i+1] & 0xfe) == 0xf8)) ||
+       ((buffer[i] == 0xff) && ((buffer[i+1] & 0xf6) == 0xf0)) ||
        (buffer[i] == 'A' && buffer[i+1] == 'D' && buffer[i+2] == 'I' && buffer[i+3] == 'F')
     ) {
       pos = i;




More information about the MPlayer-cvslog mailing list