mirror of https://bitbucket.org/ausocean/av.git
mts: patTable and pmtTable in var block instead of init func now
This commit is contained in:
parent
cf4c44f4d5
commit
ac11b281c5
|
@ -36,11 +36,6 @@ import (
|
||||||
"bitbucket.org/ausocean/av/stream/mts/psi"
|
"bitbucket.org/ausocean/av/stream/mts/psi"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
patTable []byte
|
|
||||||
pmtTable []byte
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
psiPacketSize = 184
|
psiPacketSize = 184
|
||||||
psiSendCount = 21
|
psiSendCount = 21
|
||||||
|
@ -61,10 +56,10 @@ func SetLocation(g string) {
|
||||||
metaData.location = g
|
metaData.location = g
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
var (
|
||||||
patTable = psi.StdPat.Bytes()
|
patTable = psi.StdPat.Bytes()
|
||||||
pmtTable = psi.StdPmtTimeLocation.Bytes()
|
pmtTable = psi.StdPmtTimeLocation.Bytes()
|
||||||
}
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sdtPid = 17
|
sdtPid = 17
|
||||||
|
|
Loading…
Reference in New Issue