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 {