]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Added extension header 4 bytes which isn't part of the extension header length 40/head
authorPhillip <lavendep@gmail.com>
Sat, 10 Sep 2011 14:38:29 +0000 (16:38 +0200)
committerPhillip <lavendep@gmail.com>
Sat, 10 Sep 2011 14:38:29 +0000 (16:38 +0200)
src/iptv_input.c

index 44938edc0cc95ba947ac68db65b806132be2d902..09b13a472253768d21779d2f41b463eaf533f97b 100644 (file)
@@ -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)