From d5e07a1bcfde308a30cd3ed562556c2083323dfd Mon Sep 17 00:00:00 2001 From: Xavier Drudis Date: Thu, 2 Jan 2025 10:51:58 -0800 Subject: [PATCH] Restore relative timestamp --- 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 bf1a357d333..ac13feaffbe 100644 --- a/pkg/media/ivfwriter/ivfwriter.go +++ b/pkg/media/ivfwriter/ivfwriter.go @@ -145,7 +145,7 @@ func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error { if i.count == 0 { i.firstFrameTimestamp = packet.Header.Timestamp } - relativeTstampMs := 1000 * uint64(packet.Header.Timestamp) / i.clockRate + relativeTstampMs := 1000 * uint64(packet.Header.Timestamp-i.firstFrameTimestamp) / i.clockRate if i.isVP8 { vp8Packet := codecs.VP8Packet{}