From fe2c5d103361709d59b4bb166351c5db43735c8b Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 12 Dec 2018 17:17:06 +1030 Subject: [PATCH] psi: created const for pmt with time and gps program inormation length --- stream/mts/psi/std.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stream/mts/psi/std.go b/stream/mts/psi/std.go index 228f4493..ce87b42b 100644 --- a/stream/mts/psi/std.go +++ b/stream/mts/psi/std.go @@ -26,6 +26,10 @@ LICENSE package psi +const ( + pmtTimeGpsPil = 44 +) + // Some common manifestations of PSI var ( // PSI struct to represent basic pat @@ -85,8 +89,8 @@ var ( Sn: 0, Lsn: 0, Sd: &PMT{ - Pcrpid: 0x0100, // wrong - Pil: 10, + Pcrpid: 0x0100, + Pil: pmtTimeGpsPil, Pd: []Desc{ Desc{ Dt: byte(timeDescTag),