From 15d2fc6afeb86976dd513bc109d91574798e6d80 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Sat, 18 Aug 2018 12:06:34 +0930 Subject: [PATCH] generate: remove sdtPid map entry --- generator/mpegts_generator.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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, }