util/frame: add copy method to copy properties
This commit is contained in:
parent
5ad6a3ce1d
commit
34cbbf08c5
@ -38,6 +38,12 @@ impl Frame {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn copy(&mut self, source: &Frame) {
|
||||||
|
unsafe {
|
||||||
|
av_frame_copy_props(self.ptr, source.ptr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn is_key(&self) -> bool {
|
pub fn is_key(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.ptr).key_frame == 1
|
(*self.ptr).key_frame == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user