Skip to content

Commit

Permalink
Restore relative timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
xdrudis authored and edaniels committed Jan 2, 2025
1 parent 04b4621 commit d5e07a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/media/ivfwriter/ivfwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit d5e07a1

Please sign in to comment.