From d908df7ab809cb5db65a6e3810d370646f806e69 Mon Sep 17 00:00:00 2001 From: lummax Date: Sat, 19 Sep 2015 08:45:36 +0200 Subject: [PATCH] frame/video: add `set_kind()` method --- src/util/frame/video.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 28d9857..d4b5142 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -74,6 +74,13 @@ impl Video { } } + #[inline] + pub fn set_kind(&mut self, value: picture::Type) { + unsafe { + (*self.as_mut_ptr()).pict_type = value.into(); + } + } + #[inline] pub fn is_interlaced(&self) -> bool { unsafe {