From d2ca22d2cfce5e80cea74384e0013c03c9eef40f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 15 Apr 2018 18:19:58 +0200 Subject: [PATCH] mpegts: input - fix the wrong PID read in mpegts_input_analyze_table_queue() --- src/input/mpegts/mpegts_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]++; } -- 2.47.2