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
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),