From 7c42d6a2e99c73db8fcc2af9b689e01b91115e67 Mon Sep 17 00:00:00 2001 From: lummax Date: Sun, 6 Sep 2015 19:39:10 +0200 Subject: [PATCH] util/frame: implement `set_pts()` --- src/util/frame/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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()) {