generate: remove sdtPid map entry

This commit is contained in:
Dan Kortschak 2018-08-18 12:06:34 +09:30
parent ddb78a6234
commit 15d2fc6afe
1 changed files with 5 additions and 6 deletions

View File

@ -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,
}