🎥 Make videos programmatically with React
`@remotion/renderer`: Stop potential massive computation when a lot of packets with same timestamp are in a video
Jonny Burger36950ba799c8
diff --git a/packages/renderer/rust/opened_stream.rs b/packages/renderer/rust/opened_stream.rsindex cb22c2bf68..685053aba4 100644--- a/packages/renderer/rust/opened_stream.rs+++ b/packages/renderer/rust/opened_stream.rs@@ -368,7 +368,7 @@ impl OpenedStream {let new_difference =(unfiltered.pts().expect("pts") - position).abs();- if new_difference > prev_difference {+ if new_difference >= prev_difference {stop_after_n_diverging_pts = Some(stop - 1);} else if prev_difference > new_difference {// Fixing test video crazy1.mp4, frames 240-259