mirror of https://bitbucket.org/ausocean/av.git
psi: renamed SD (specific data) interface to SpecificData
This commit is contained in:
parent
0c0afa8bde
commit
ba9e5a3136
|
@ -72,26 +72,26 @@ type PSI struct {
|
|||
|
||||
// Table syntax section
|
||||
type TSS struct {
|
||||
Tide uint16 // Table ID extension
|
||||
V byte // Version number
|
||||
Cni bool // Current/next indicator
|
||||
Sn byte // Section number
|
||||
Lsn byte // Last section number
|
||||
Sd SD // Specific data PAT/PMT
|
||||
Tide uint16 // Table ID extension
|
||||
V byte // Version number
|
||||
Cni bool // Current/next indicator
|
||||
Sn byte // Section number
|
||||
Lsn byte // Last section number
|
||||
Sd SpecificData // Specific data PAT/PMT
|
||||
}
|
||||
|
||||
// Specific Data, (could be PAT or PMT)
|
||||
type SD interface {
|
||||
type SpecificData interface {
|
||||
Bytes() []byte
|
||||
}
|
||||
|
||||
// Program association table, implements SD
|
||||
// Program association table, implements SpecificData
|
||||
type PAT struct {
|
||||
Pn uint16 // Program Number
|
||||
Pmpid uint16 // Program map PID
|
||||
}
|
||||
|
||||
// Program mapping table, implements SD
|
||||
// Program mapping table, implements SpecificData
|
||||
type PMT struct {
|
||||
Pcrpid uint16 // Program clock reference pid
|
||||
Pil uint16 // Program info length
|
||||
|
|
Loading…
Reference in New Issue