From: Jaroslav Kysela Date: Sun, 15 Apr 2018 16:19:58 +0000 (+0200) Subject: mpegts: input - fix the wrong PID read in mpegts_input_analyze_table_queue() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2ca22d2cfce5e80cea74384e0013c03c9eef40f;p=thirdparty%2Ftvheadend.git mpegts: input - fix the wrong PID read in mpegts_input_analyze_table_queue() --- diff --git a/src/input/mpegts/mpegts_input.c b/src/input/mpegts/mpegts_input.c index 7c6a3a554..fc525bb3c 100644 --- a/src/input/mpegts/mpegts_input.c +++ b/src/input/mpegts/mpegts_input.c @@ -1072,7 +1072,7 @@ static void mpegts_input_analyze_table_queue ( mpegts_input_t *mi ) memset(&counters, 0, sizeof(counters)); TAILQ_FOREACH(mtf, &mi->mi_table_queue, mtf_link) { const uint8_t *tsb = mtf->mtf_tsb; - pid = ((tsb[1] << 8) & 0x0f) | tsb[2]; + pid = ((tsb[1] & 0x1f) << 8) | tsb[2]; sizes[pid] += mtf->mtf_len; counters[pid]++; }