From 62a3f7288afde6de0b5bc91a3c948d4729ffa79c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 19 Nov 2015 16:17:13 +0100 Subject: [PATCH] IPTV: HLS parser - fix NULL dereference --- src/input/mpegts/iptv/iptv_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index dd5ade101..0a14227c5 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -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) { -- 2.47.3