mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
d16cccac98
commit
f74e5b76b1
@ -44,7 +44,7 @@ static int adts_aac_probe(AVProbeData *p)
|
|||||||
uint32_t header = AV_RB16(buf2);
|
uint32_t header = AV_RB16(buf2);
|
||||||
if((header&0xFFF6) != 0xFFF0)
|
if((header&0xFFF6) != 0xFFF0)
|
||||||
break;
|
break;
|
||||||
fsize = (AV_RB32(buf2+3)>>13) & 0x8FFF;
|
fsize = (AV_RB32(buf2 + 3) >> 13) & 0x1FFF;
|
||||||
if(fsize < 7)
|
if(fsize < 7)
|
||||||
break;
|
break;
|
||||||
buf2 += fsize;
|
buf2 += fsize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user