From: Andreas Ă–man Date: Mon, 25 Oct 2010 20:00:54 +0000 (+0000) Subject: MPEG audio startcodes is in 0x1c0 - 0x1df range, not just 0x1c0 X-Git-Tag: 2.12~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f70076ee0b8191a5359a006b2ef85102069067c9;p=thirdparty%2Ftvheadend.git MPEG audio startcodes is in 0x1c0 - 0x1df range, not just 0x1c0 Probably fixes ticket #265 #291 --- diff --git a/src/parsers.c b/src/parsers.c index 7b46adeab..686b35fbe 100644 --- a/src/parsers.c +++ b/src/parsers.c @@ -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];