diff --git a/src/util/frame/mod.rs b/src/util/frame/mod.rs index 632d126..a8cb5ab 100644 --- a/src/util/frame/mod.rs +++ b/src/util/frame/mod.rs @@ -85,6 +85,12 @@ impl Frame { } } + pub fn set_pts(&mut self, value: i64) { + unsafe { + (*self.as_mut_ptr()).pts = value; + } + } + pub fn timestamp(&self) -> Option { unsafe { match av_frame_get_best_effort_timestamp(self.as_ptr()) {