util/frame: implement set_pts()

This commit is contained in:
lummax 2015-09-06 19:39:10 +02:00 committed by meh
parent 87ea1bd196
commit 7c42d6a2e9

View File

@ -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<i64> {
unsafe {
match av_frame_get_best_effort_timestamp(self.as_ptr()) {