psi: created const for pmt with time and gps program inormation length

This commit is contained in:
saxon 2018-12-12 17:17:06 +10:30
parent 283689ea6c
commit fe2c5d1033
1 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,10 @@ LICENSE
package psi package psi
const (
pmtTimeGpsPil = 44
)
// Some common manifestations of PSI // Some common manifestations of PSI
var ( var (
// PSI struct to represent basic pat // PSI struct to represent basic pat
@ -85,8 +89,8 @@ var (
Sn: 0, Sn: 0,
Lsn: 0, Lsn: 0,
Sd: &PMT{ Sd: &PMT{
Pcrpid: 0x0100, // wrong Pcrpid: 0x0100,
Pil: 10, Pil: pmtTimeGpsPil,
Pd: []Desc{ Pd: []Desc{
Desc{ Desc{
Dt: byte(timeDescTag), Dt: byte(timeDescTag),