]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
MPEG audio startcodes is in 0x1c0 - 0x1df range, not just 0x1c0
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 25 Oct 2010 20:00:54 +0000 (20:00 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 25 Oct 2010 20:00:54 +0000 (20:00 +0000)
Probably fixes ticket #265 #291

src/parsers.c

index 7b46adeab70288e93fc965ba3f7c5f869b662d7e..686b35fbe7b95d479f431ed58908358119b15afe 100644 (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];