diff --git a/src/lib.rs b/src/lib.rs
index 7b39ac6..fa4036f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -17,7 +17,8 @@ use vapoursynth::frame::{FrameRef, FrameRefMut};
use vapoursynth::map::Map;
use vapoursynth::node::Node;
use vapoursynth::plugins::{Filter, FilterArgument, FrameContext, Metadata};
-use vapoursynth::video_info::VideoInfo;
+use vapoursynth::video_info::{VideoInfo, Property};
+use vapoursynth::format::SampleType;
pub const PLUGIN_NAME: &str = "adaptivegrain";
pub const PLUGIN_IDENTIFIER: &str = "moe.kageru.adaptivegrain";
@@ -76,7 +77,7 @@ make_filter_function! {
_api: API,
_core: CoreRef<'core>,
clip: Node<'core>,
- ) -> Result