Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/compositor/src/cpu_frames_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ impl CpuFrames {
}

self.upload(w, h)?;
// `Decoder::seek_to` and `decode_forward_to` inspect the presentation frame returned by
// `present`, so it must carry the decoded frame's timing just like the macOS/Linux CPU
// paths. Leaving the allocation defaults here makes every non-H.264 frame look untimed.
(*self.present).pts = (*src).pts;
(*self.present).best_effort_timestamp = (*src).best_effort_timestamp;
Ok(self.present)
}

Expand Down
Loading
Loading