mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
util/frame: implement set_pts()
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user