From 453f83a532bd9b4d63c47b1b6ad5e6f017031119 Mon Sep 17 00:00:00 2001 From: Phillip Date: Sat, 10 Sep 2011 16:38:29 +0200 Subject: [PATCH] Added extension header 4 bytes which isn't part of the extension header length --- src/iptv_input.c | 2 ++ 1 file changed, 2 insertions(+) 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)