diff --git a/crates/ec-dv/src/video.rs b/crates/ec-dv/src/video.rs index 8742bf01..662d2539 100644 --- a/crates/ec-dv/src/video.rs +++ b/crates/ec-dv/src/video.rs @@ -350,8 +350,11 @@ impl DvVideoDecoder { }) }) .collect(); - handles.into_iter().map(|h| h.join().expect("DV segment worker panicked")).collect() - }); + handles + .into_iter() + .map(|h| h.join().map_err(|_| Error::corrupt("DV: segment worker panicked"))) + .collect::>>() + })?; for o in &outs { o.apply(&mut planes); }