diff --git a/web-codecs/src/video/frame.rs b/web-codecs/src/video/frame.rs index 7a39bed..6d60b68 100644 --- a/web-codecs/src/video/frame.rs +++ b/web-codecs/src/video/frame.rs @@ -14,7 +14,7 @@ pub struct VideoFrame(web_sys::VideoFrame); impl VideoFrame { pub fn timestamp(&self) -> Timestamp { - Timestamp::from_micros(self.0.timestamp().unwrap() as _) + Timestamp::from_micros(self.0.timestamp() as _) } pub fn duration(&self) -> Option {