diff --git a/stream/mts/psi/psi.go b/stream/mts/psi/psi.go index 07d460bb..f046496e 100644 --- a/stream/mts/psi/psi.go +++ b/stream/mts/psi/psi.go @@ -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