mirror of https://bitbucket.org/ausocean/av.git
generate: remove sdtPid map entry
This commit is contained in:
parent
ddb78a6234
commit
15d2fc6afe
|
@ -51,8 +51,8 @@ func init() {
|
|||
}
|
||||
|
||||
const (
|
||||
SdtPid = 17
|
||||
PatPid = 0
|
||||
sdtPid = 17
|
||||
patPid = 0
|
||||
pmtPid = 4096
|
||||
videoPid = 256
|
||||
streamID = 0xe0
|
||||
|
@ -79,8 +79,7 @@ func NewTsGenerator(fps float64) (g *tsGenerator) {
|
|||
fps: fps,
|
||||
currentPtsTime: ptsOffset,
|
||||
continuity: map[int]byte{
|
||||
SdtPid: 0, // FIXME(kortschak): This is not used.
|
||||
PatPid: 0,
|
||||
patPid: 0,
|
||||
pmtPid: 0,
|
||||
videoPid: 0,
|
||||
},
|
||||
|
@ -139,8 +138,8 @@ func (g *tsGenerator) generate() {
|
|||
// Create pat table
|
||||
patPkt := mpegts.Packet{
|
||||
PUSI: pusi,
|
||||
PID: PatPid,
|
||||
CC: g.ccFor(PatPid),
|
||||
PID: patPid,
|
||||
CC: g.ccFor(patPid),
|
||||
AFC: 1,
|
||||
Payload: patTable,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue