diff --git a/container/mts/mpegts.go b/container/mts/mpegts.go index 2be1841b..68565078 100644 --- a/container/mts/mpegts.go +++ b/container/mts/mpegts.go @@ -378,6 +378,7 @@ func asByte(b bool) byte { // GotsPacket takes a byte slice and returns a Packet as defined in github.com/comcast/gots/packet. // TODO: replace this with a type conversion as described here: https://github.com/golang/go/issues/395 +// when it becomes available in Go 1.17. func GotsPacket(b []byte) *packet.Packet { if len(b) != packet.PacketSize { panic("invalid packet size")