]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts: input - fix the wrong PID read in mpegts_input_analyze_table_queue()
authorJaroslav Kysela <perex@perex.cz>
Sun, 15 Apr 2018 16:19:58 +0000 (18:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 15 Apr 2018 18:33:10 +0000 (20:33 +0200)
src/input/mpegts/mpegts_input.c

index 7c6a3a554205a58eae98bf3ea4ce416fbe338418..fc525bb3c2a18a218acdf8d009df8bc9e7568306 100644 (file)
@@ -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]++;
   }