From: Kieran Kunhya Date: Wed, 8 Jun 2011 06:26:20 +0000 (-0500) Subject: adts: Adjust frame size mask to follow the specification. X-Git-Tag: v0.7rc1~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f74e5b76b1033e5224d6a7b5906e05cecd2b3302;p=platform%2Fupstream%2Flibav.git adts: Adjust frame size mask to follow the specification. This fixes ADTS detection for at least one sample. Signed-off-by: Diego Biurrun --- diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index 0dc1c5c..6a184c7 100644 --- a/libavformat/aacdec.c +++ b/libavformat/aacdec.c @@ -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;