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:
Saxon 2019-02-27 16:36:59 +10:30
parent b96df6d3a7
commit 947f818bc6
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func FindPID(d []byte, pid uint16) (pkt []byte, i int, err error) {
return 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 // FillPayload takes a channel and fills the packets Payload field until the