Skip to content

Commit

Permalink
Use if-false instead of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 13, 2024
1 parent 74e651e commit c40676b
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions crates/store/re_video/src/demux/mp4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,24 @@ impl VideoData {
}

// Generate data for `test_latest_sample_index_at_presentation_timestamp` test.
// re_log::info!(
// "pts: {:?}",
// samples
// .iter()
// .take(50)
// .map(|s| s.presentation_timestamp.0)
// .collect::<Vec<_>>()
// );
// re_log::info!(
// "dts: {:?}",
// samples
// .iter()
// .take(50)
// .map(|s| s.decode_timestamp.0)
// .collect::<Vec<_>>()
// );
if false {
re_log::info!(
"pts: {:?}",
samples
.iter()
.take(50)
.map(|s| s.presentation_timestamp.0)
.collect::<Vec<_>>()
);
re_log::info!(
"dts: {:?}",
samples
.iter()
.take(50)
.map(|s| s.decode_timestamp.0)
.collect::<Vec<_>>()
);
}

// Append the last GOP if there are any samples left:
if !samples.is_empty() {
Expand Down

0 comments on commit c40676b

Please sign in to comment.