diff --git a/generator/mpegts_generator.go b/generator/mpegts_generator.go index 88d129fb..0147a7f2 100644 --- a/generator/mpegts_generator.go +++ b/generator/mpegts_generator.go @@ -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, }