util/frame: add copy method to copy properties

This commit is contained in:
meh 2015-05-28 18:21:08 +02:00
parent 5ad6a3ce1d
commit 34cbbf08c5

View File

@ -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