From e46664d4134368643f3d056c40e0abc246510daa Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Sun, 15 Oct 2023 18:06:37 +0200 Subject: [PATCH] Fix typo --- vskernels/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vskernels/util.py b/vskernels/util.py index 6212989..ba38c46 100644 --- a/vskernels/util.py +++ b/vskernels/util.py @@ -115,9 +115,10 @@ class LinearLightProcessing(cachedproperty.baseclass): @cachedproperty def linear(self) -> vs.VideoNode: + wclip = self.ll._wclip if self.ll._wclip.format.color_family is vs.YUV: - wclip = Catrom.from_param(self.ll.kernel).resample(self.ll._wclip, vs.RGBS, None, self.ll._matrix) + wclip = Catrom.from_param(self.ll.kernel).resample(wclip, vs.RGBS, None, self.ll._matrix) if self.ll.linear: wclip = Point.scale_function(wclip, transfer_in=self.ll._curve, transfer=Transfer.LINEAR)