util/frame: implement set_pts()
This commit is contained in:
parent
87ea1bd196
commit
7c42d6a2e9
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user