diff --git a/stream/mts/encoder.go b/stream/mts/encoder.go index 3e9359b9..719ccd86 100644 --- a/stream/mts/encoder.go +++ b/stream/mts/encoder.go @@ -36,11 +36,6 @@ import ( "bitbucket.org/ausocean/av/stream/mts/psi" ) -var ( - patTable []byte - pmtTable []byte -) - const ( psiPacketSize = 184 psiSendCount = 21 @@ -61,10 +56,10 @@ func SetLocation(g string) { metaData.location = g } -func init() { +var ( patTable = psi.StdPat.Bytes() pmtTable = psi.StdPmtTimeLocation.Bytes() -} +) const ( sdtPid = 17