From 70d06fd9f6264db8590ee45e52c3a003fca3c25c Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Wed, 12 Feb 2025 22:26:31 -0500 Subject: [PATCH] Fix ivfwriter with VP9 Use the correct values for timestamps --- pkg/media/ivfwriter/ivfwriter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/media/ivfwriter/ivfwriter.go b/pkg/media/ivfwriter/ivfwriter.go index f1935e67ad3..67323560a65 100644 --- a/pkg/media/ivfwriter/ivfwriter.go +++ b/pkg/media/ivfwriter/ivfwriter.go @@ -223,7 +223,7 @@ func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error { //nolint:cyclop, gocogn // the timestamp must be sequential. webrtc mandates a clock rate of 90000 // and we've assumed 30fps in the header. - if err := i.writeFrame(i.currentFrame, uint64(packet.Timestamp)/3000); err != nil { + if err := i.writeFrame(i.currentFrame, relativeTstampMs); err != nil { return err } i.currentFrame = nil