Commit f74e5b76 authored by Kieran Kunhya's avatar Kieran Kunhya Committed by Diego Biurrun

adts: Adjust frame size mask to follow the specification.

This fixes ADTS detection for at least one sample.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent d16cccac
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment