changeset 15708:bdb826438aa8

fixed wrong binary mask: it precluded the syncword of adts-4 from being recognized as valid
author nicodvb
date Sun, 12 Jun 2005 13:30:40 +0000
parents 8c7268bfe792
children c5d60b8f3fa9
files libmpcodecs/ad_faad.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_faad.c	Thu Jun 09 21:14:36 2005 +0000
+++ b/libmpcodecs/ad_faad.c	Sun Jun 12 13:30:40 2005 +0000
@@ -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;