Skip to content

Commit

Permalink
Comment clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Sep 5, 2024
1 parent 52ba17e commit b19551d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cam/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func (e *encoder) encode(frame image.Image) ([]byte, int64, int64, error) {
e.srcFrame.linesize[1] = C.int(frame.Bounds().Dx() / 2)
e.srcFrame.linesize[2] = C.int(frame.Bounds().Dx() / 2)

// PTS/DTS time is equal frameCount times time_base. This assumes
// that the processFrame routine is running at the source framerate.
// Both PTS and DTS times are equal frameCount multiplied by the time_base.
// This assumes that the processFrame routine is running at the source framerate.
// TODO(seanp): What happens to playback if frame is dropped?
e.srcFrame.pts = C.int64_t(e.frameCount)
e.srcFrame.pkt_dts = e.srcFrame.pts
Expand Down

0 comments on commit b19551d

Please sign in to comment.