util/frame/video: add picture_mut getter

This commit is contained in:
meh 2015-05-29 22:11:56 +02:00
parent 70633b1349
commit dae7e523f6

View File

@ -35,6 +35,10 @@ impl Video {
Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height()) Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height())
} }
pub fn picture_mut(&mut self) -> Picture {
Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height())
}
pub fn format(&self) -> format::Pixel { pub fn format(&self) -> format::Pixel {
unsafe { unsafe {
if (*self.ptr).format == -1 { if (*self.ptr).format == -1 {