Skip to content

Commit

Permalink
Fix invalid PTS in integration tests (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
noituri authored Mar 19, 2024
1 parent 9357efe commit 6ec9f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compositor_integration_tests/src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl VideoDecoder {
}

pub fn decode(&mut self, packet: rtp::packet::Packet) -> Result<()> {
let pts = packet.header.timestamp as f64 / 90000.0;
let pts = packet.header.timestamp as f64 / 90000.0 * 1_000_000.0;
let chunk_data = self.depayloader.depacketize(&packet.payload)?;
if chunk_data.is_empty() {
return Ok(());
Expand Down

0 comments on commit 6ec9f91

Please sign in to comment.