We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b4621 commit d5e07a1Copy full SHA for d5e07a1
pkg/media/ivfwriter/ivfwriter.go
@@ -145,7 +145,7 @@ func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error {
145
if i.count == 0 {
146
i.firstFrameTimestamp = packet.Header.Timestamp
147
}
148
- relativeTstampMs := 1000 * uint64(packet.Header.Timestamp) / i.clockRate
+ relativeTstampMs := 1000 * uint64(packet.Header.Timestamp-i.firstFrameTimestamp) / i.clockRate
149
150
if i.isVP8 {
151
vp8Packet := codecs.VP8Packet{}
0 commit comments