diff --git a/twitch/main.go b/twitch/main.go index 9517904..8e3d3ab 100644 --- a/twitch/main.go +++ b/twitch/main.go @@ -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) } }