Skip to content

🎥 Make videos programmatically with React

`@remotion/renderer`: Fix OffthreadVideo with multiple streams

Jonny Burger5784668f1d8e
diff --git a/packages/renderer/rust/opened_stream.rs b/packages/renderer/rust/opened_stream.rs
index c8805fa513..da2887c3de 100644
--- a/packages/renderer/rust/opened_stream.rs
+++ b/packages/renderer/rust/opened_stream.rs
@@ -218,6 +218,9 @@ impl OpenedStream {
if stream.parameters().medium() != Type::Video {
continue;
}
+ if stream.index() != self.stream_index {
+ continue;
+ }
_print_verbose(&format!(
"Got packet dts = {:?} pts = {:?} key = {}",