diff --git a/src/iptv_input.c b/src/iptv_input.c index 44938edc..09b13a47 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)