diff --git a/stream/mts/mpegts.go b/stream/mts/mpegts.go index 012a912c..6d51a0b0 100644 --- a/stream/mts/mpegts.go +++ b/stream/mts/mpegts.go @@ -182,7 +182,7 @@ func FindPID(d []byte, pid uint16) (pkt []byte, i int, err error) { return } } - return nil, -1, errors.New("Could not find packet with given pid in mpegts data") + return nil, -1, errors.New(fmt.Sprintf("could not find packet with pid: %v",pid)) } // FillPayload takes a channel and fills the packets Payload field until the