From e677b9a0444a0b054b40416e1b0fd9bc06461f2e Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Mon, 28 May 2018 15:02:10 +0930 Subject: [PATCH] mpegts: fix build --- mpegts/psi/pat.go | 36 ++++++++++++++++++------------------ mpegts/psi/pmt.go | 4 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/mpegts/psi/pat.go b/mpegts/psi/pat.go index 9d40fa3b..d090a0d7 100644 --- a/mpegts/psi/pat.go +++ b/mpegts/psi/pat.go @@ -28,24 +28,24 @@ LICENSE package psi type PAT struct { - PF byte // POint field - PFB []byte // pointer filler bytes - TableID byte // Table ID - SSI bool // Sectiopn syntax indicator (1 for PAT, PMT, CAT) - PB bool // Private bit (0 for PAT, PMT, CAT) - SL uint16 // Section length - TIE uint16 // Table ID extension - Version byte // Version number - CNI bool // Current/next indicator - Section byte // Section number - LSN byte // Last section number - DT byte // Descriptor tag - DL byte // Descriptor length - Program uint16 // Program number - PMPID uint16 // Program map PID - CRC32 uint32 // Checksum of table + PF byte // Point field + PFB []byte // pointer filler bytes + TableID byte // Table ID + SSI bool // Sectiopn syntax indicator (1 for PAT, PMT, CAT) + PB bool // Private bit (0 for PAT, PMT, CAT) + SL uint16 // Section length + TIE uint16 // Table ID extension + Version byte // Version number + CNI bool // Current/next indicator + Section byte // Section number + LSN byte // Last section number + DT byte // Descriptor tag + DL byte // Descriptor length + Program uint16 // Program number + PMPID uint16 // Program map PID + CRC32 uint32 // Checksum of table } -type (p *PAT)ToByteSlice()(output []byte){ - +func (p *PAT) ToByteSlice() (output []byte) { + return } diff --git a/mpegts/psi/pmt.go b/mpegts/psi/pmt.go index e7771031..2971e8c0 100644 --- a/mpegts/psi/pmt.go +++ b/mpegts/psi/pmt.go @@ -28,7 +28,7 @@ LICENSE package psi type PMT struct { - PF byte // POint field + PF byte // Point field PFB []byte // pointer filler bytes TableID byte // Table ID SSI bool // Sectiopn syntax indicator (1 for PAT, PMT, CAT) @@ -43,5 +43,5 @@ type PMT struct { } func (p *PMT) ToByteSlice() (output []byte) { - + return }