diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index 2430e58b0..e62e85c57 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -900,7 +900,7 @@ impl TtToCea608 { ); } - let frame_no = (timestamp + duration.unwrap()) + let frame_no = (timestamp + duration.unwrap_or(gst::ClockTime::ZERO)) .mul_div_round(fps_n, fps_d) .unwrap() .seconds();