Skip to content

Commit

Permalink
Fix video timestamp in twitch example
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Aug 28, 2023
1 parent 4ba9e83 commit cbcbf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func pushVP8(rtpPacket *rtp.Packet) {
}
if videoWriter != nil {
videoTimestamp += sample.Duration
if _, err := videoWriter.Write(videoKeyframe, int64(audioTimestamp/time.Millisecond), sample.Data); err != nil {
if _, err := videoWriter.Write(videoKeyframe, int64(videoTimestamp/time.Millisecond), sample.Data); err != nil {
panic(err)
}
}
Expand Down

0 comments on commit cbcbf7c

Please sign in to comment.