Skip to content

Commit cbcbf7c

Browse files
committed
Fix video timestamp in twitch example
1 parent 4ba9e83 commit cbcbf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitch/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func pushVP8(rtpPacket *rtp.Packet) {
229229
}
230230
if videoWriter != nil {
231231
videoTimestamp += sample.Duration
232-
if _, err := videoWriter.Write(videoKeyframe, int64(audioTimestamp/time.Millisecond), sample.Data); err != nil {
232+
if _, err := videoWriter.Write(videoKeyframe, int64(videoTimestamp/time.Millisecond), sample.Data); err != nil {
233233
panic(err)
234234
}
235235
}

0 commit comments

Comments
 (0)