mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-12-24 11:51:18 +08:00
@@ -313,7 +313,7 @@ func setupVideoTrack(
|
||||
for _, pkt := range packets {
|
||||
ntp := u.NTP.Add(timestampToDuration(int64(pkt.Timestamp), 90000))
|
||||
pkt.Timestamp += u.RTPPackets[0].Timestamp
|
||||
track.WriteRTPWithNTP(pkt, ntp.Add(-1*time.Minute)) //nolint:errcheck
|
||||
track.WriteRTPWithNTP(pkt, ntp) //nolint:errcheck
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user