MPEG audio startcodes is in 0x1c0 - 0x1df range, not just 0x1c0

Probably fixes ticket #265 #291
This commit is contained in:
Andreas Öman 2010-10-25 20:00:54 +00:00
parent 112fe0939b
commit f70076ee0b

View file

@ -371,7 +371,7 @@ depacketize(th_transport_t *t, th_stream_t *st, size_t len,
uint32_t sc = st->st_startcode;
int hlen, plen;
if((sc != 0x1bd && sc != 0x1c0) || len < 9)
if((sc != 0x1bd && (sc & ~0x1f) != 0x1c0) || len < 9)
return 1;
plen = (buf[4] << 8) | buf[5];