mirror of https://bitbucket.org/ausocean/av.git
stream/mts: modified error in FindPid in the case that we can't a packet with given pid so that we show pid
This commit is contained in:
parent
b96df6d3a7
commit
947f818bc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue