diff --git a/av1an-core/src/context.rs b/av1an-core/src/context.rs index 0084c207..966e0f18 100644 --- a/av1an-core/src/context.rs +++ b/av1an-core/src/context.rs @@ -383,7 +383,7 @@ impl Av1anContext { }); if self.args.vmaf { - let vmaf_threads = available_parallelism().map_or(1, |p| p.get()); + let vmaf_threads = available_parallelism().map_or(1, std::num::NonZero::get); if let Err(e) = vmaf::plot( self.args.output_file.as_ref(),