aac: fix adts frame size mask, fix demuxer probing for some files.
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 7 Jun 2011 18:09:58 +0000 (11:09 -0700)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 8 Jun 2011 20:12:18 +0000 (13:12 -0700)
libavformat/aacdec.c

index 47e9bf3..a224c96 100644 (file)
@@ -44,7 +44,7 @@ static int adts_aac_probe(AVProbeData *p)
             uint32_t header = AV_RB16(buf2);
             if((header&0xFFF6) != 0xFFF0)
                 break;
-            fsize = (AV_RB32(buf2+3)>>13) & 0x8FFF;
+            fsize = (AV_RB32(buf2+3)>>13) & 0x1FFF;
             if(fsize < 7)
                 break;
             buf2 += fsize;