update doc

This commit is contained in:
aler9
2021-09-23 20:02:51 +02:00
parent 78a613a034
commit b9042282ab
13 changed files with 20 additions and 20 deletions

View File

@@ -37,10 +37,10 @@ func main() {
// instantiate a RTP/H264 decoder
dec := rtph264.NewDecoder()
// read RTP frames
// read RTP packets
err = conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) {
if streamType == gortsplib.StreamTypeRTP && trackID == h264Track {
// convert RTP frames into H264 NALUs
// convert RTP packets into H264 NALUs
nalus, _, err := dec.Decode(payload)
if err != nil {
return