From dae7e523f6b8858bcb5537e1db90e5e24bac84d1 Mon Sep 17 00:00:00 2001 From: meh Date: Fri, 29 May 2015 22:11:56 +0200 Subject: [PATCH] util/frame/video: add picture_mut getter --- src/util/frame/video.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index d20b7ba..d821347 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -35,6 +35,10 @@ impl Video { 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 { unsafe { if (*self.ptr).format == -1 {