diff --git a/src/format/context/common.rs b/src/format/context/common.rs index a306e0c..8d2d5d0 100644 --- a/src/format/context/common.rs +++ b/src/format/context/common.rs @@ -63,6 +63,12 @@ impl Context { StreamIterMut::new(self) } + pub fn duration(&self) -> i64 { + unsafe { + (*self.as_ptr()).duration + } + } + pub fn metadata(&self) -> DictionaryRef { unsafe { DictionaryRef::wrap((*self.as_ptr()).metadata)