]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: HLS parser - fix NULL dereference
authorJaroslav Kysela <perex@perex.cz>
Thu, 19 Nov 2015 15:17:13 +0000 (16:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 19 Nov 2015 15:17:13 +0000 (16:17 +0100)
src/input/mpegts/iptv/iptv_http.c

index dd5ade101ba09419379866f5f1b2f737e2506a61..0a14227c5dba4817c6d004e5cab4b50992e77426 100644 (file)
@@ -210,7 +210,7 @@ iptv_http_data
 
   pthread_mutex_lock(&iptv_lock);
 
-  if (dispatch_clock != hp->hls_last_si) {
+  if (dispatch_clock != hp->hls_last_si && hp->hls_si) {
     /* do rounding to next MPEG-TS packet */
     rem = 188 - (hp->off % 188);
     if (rem < 188) {