From: Phillip Date: Sat, 10 Sep 2011 14:38:29 +0000 (+0200) Subject: Added extension header 4 bytes which isn't part of the extension header length X-Git-Tag: 2.99~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=453f83a532bd9b4d63c47b1b6ad5e6f017031119;p=thirdparty%2Ftvheadend.git Added extension header 4 bytes which isn't part of the extension header length --- diff --git a/src/iptv_input.c b/src/iptv_input.c index 44938edc0..09b13a472 100644 --- a/src/iptv_input.c +++ b/src/iptv_input.c @@ -168,6 +168,8 @@ iptv_thread(void *aux) // Skip over extension header (last 2 bytes of header is length) hlen += ((tsb[hlen + 2] << 8) | tsb[hlen + 3]) * 4; + // Add the extension header itself (EHL does not inc header) + hlen += 4; } if(r < hlen || (r - hlen) % 188 != 0)