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)