av/stream/mts/psi/psi_test.go

53 lines
583 B
Go
Raw Normal View History

2018-12-07 08:23:38 +03:00
package psi
import (
"testing"
)
2018-12-10 10:12:45 +03:00
var (
patPsi = PSI{
Pf: 0x00,
Tid: 0x00,
Ssi: true,
Pb: false,
Sl: uint16(0x0d),
Tss: &TSS{
Tide: uint16(0x01),
V: 0,
Cni: true,
Sn: 0,
Lsn: 0,
Sd: &PAT{
Pn: uint16(0x01),
Pmpid: 16,
},
},
}
pmtPsi = PSI{
Pf: 0x00,
Tid: 0x02,
Ssi: true,
Sl: uint16(0x12),
Tss: & TSS{
Tide: uint16(0x01),
V:0,
Cni: true,
Sn: 0,
Lsn: 0,
Sd: &PMT{
Pcrpid: 16, // wrong
Pil: 0,
Essd: &ESSD{
St: 0x1b,
}
}
}
}
}
)
2018-12-07 08:23:38 +03:00
func TestReadPSI1(t *testing.T) {
}