mirror of https://bitbucket.org/ausocean/av.git
stream/mts/mpegts.go: updated FindPMT comment
This commit is contained in:
parent
ba209a1d7c
commit
6b4e0946dd
|
@ -128,7 +128,7 @@ type Packet struct {
|
|||
}
|
||||
|
||||
// FindPMT will take a clip of mpegts and try to find a PMT table - if one
|
||||
// is found, then it is returned, otherwise nil and an error is returned.
|
||||
// is found, then it is returned along with its index, otherwise nil, -1 and an error is returned.
|
||||
func FindPMT(d []byte) (p []byte, i int, err error) {
|
||||
if len(d) < PacketSize {
|
||||
return nil, -1, errors.New("Mmpegts data not of valid length")
|
||||
|
|
Loading…
Reference in New Issue