From a7989955ca84d713a59f99fe40c8e60f8fc9f48a Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 28 Feb 2019 11:06:27 +1030 Subject: [PATCH] stream/mts: corrected func comments for FindPat, FindPmt and FindPid --- stream/mts/mpegts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stream/mts/mpegts.go b/stream/mts/mpegts.go index c3c0d390..705f88de 100644 --- a/stream/mts/mpegts.go +++ b/stream/mts/mpegts.go @@ -158,19 +158,19 @@ type Packet struct { Payload []byte // Mpeg ts Payload } -// FindPMT will take a clip of mpegts and try to find a PMT table - if one +// FindPmt will take a clip of mpegts and try to find a PMT table - if one // is found, then it is returned along with its index, otherwise nil, -1 and an error is returned. func FindPmt(d []byte) ([]byte, int, error) { return FindPid(d, PmtPid) } -// FindPAT will take a clip of mpegts and try to find a PAT table - if one +// FindPat will take a clip of mpegts and try to find a PAT table - if one // is found, then it is returned along with its index, otherwise nil, -1 and an error is returned. func FindPat(d []byte) ([]byte, int, error) { return FindPid(d, PatPid) } -// FindPID will take a clip of mpegts and try to find a packet with given PID - if one +// FindPid will take a clip of mpegts and try to find a packet with given PID - if one // is found, then it is returned along with its index, otherwise nil, -1 and an error is returned. func FindPid(d []byte, pid uint16) (pkt []byte, i int, err error) { if len(d) < PacketSize {