From 403f2af9b96b7d420eecb0411e1a8a016ee6f3e0 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sun, 29 Dec 2013 23:04:51 +0000 Subject: [PATCH] mepgts: correct invalid interpretation of service type in VCT. Fixes #1857. --- src/input/mpegts/dvb_psi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/mpegts/dvb_psi.c b/src/input/mpegts/dvb_psi.c index 9727a3fd..606ec082 100644 --- a/src/input/mpegts/dvb_psi.c +++ b/src/input/mpegts/dvb_psi.c @@ -1090,6 +1090,10 @@ atsc_vct_callback tvhdebug("vct", "chnum %d.%d", maj, min); tvhdebug("vct", "type %02X (%d)", type, type); + /* Skip */ + if (type > 3) + goto next; + /* Find mux */ LIST_FOREACH(mm, &mn->mn_muxes, mm_network_link) if (mm->mm_tsid == tsid) @@ -1101,10 +1105,6 @@ atsc_vct_callback goto next; /* Update */ - if (s->s_dvb_servicetype != type) { - s->s_dvb_servicetype = type; - save = 1; - } if (strcmp(s->s_dvb_svcname ?: "", chname)) { tvh_str_set(&s->s_dvb_svcname, chname); save = 1;