Skip to content

Commit

Permalink
Fix ivfwriter with VP9
Browse files Browse the repository at this point in the history
Use the correct values for timestamps
  • Loading branch information
Sean-Der committed Feb 13, 2025
1 parent ee669ca commit 70d06fd
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 @@ -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
Expand Down

0 comments on commit 70d06fd

Please sign in to comment.