diff options
author | Kieran Kunhya <kierank@ob-encoder.com> | 2011-06-08 01:26:20 -0500 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-10 18:41:04 +0200 |
commit | f74e5b76b1033e5224d6a7b5906e05cecd2b3302 (patch) | |
tree | 6ef337b9522269b9b220c5d60d22f9c5d853f275 /libavformat/aacdec.c | |
parent | d16cccac98a250d53827fa0c82e429bf17070d0f (diff) | |
download | ffmpeg-f74e5b76b1033e5224d6a7b5906e05cecd2b3302.tar.gz |
adts: Adjust frame size mask to follow the specification.
This fixes ADTS detection for at least one sample.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/aacdec.c')
-rw-r--r-- | libavformat/aacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index 0dc1c5ce0f..6a184c77d7 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; |