mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-19 17:50:03 -08:00
fix 1-minute offset when recording a H264 WebRTC track (#5275) (#5278)
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
This commit is contained in:
parent
f1e3b373f5
commit
9e82b5233d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue