Skip to content

Commit

Permalink
FunctionUtil: Fix color family conversion edgecase (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 authored Oct 22, 2024
1 parent 95d84a4 commit fe8b55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstools/functions/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def norm_clip(self) -> ConstantFormatVideoNode:

clip = clip.resize.Bicubic(format=clip.format.replace(color_family=vs.YUV), matrix=self._matrix)

elif cfamily in (vs.YUV, vs.GRAY) and not set(self.allowed_cfamilies) & {vs.YUV, vs.GRAY}:
elif cfamily in (vs.YUV, vs.GRAY) and not set(self.allowed_cfamilies) & {vs.YUV, vs.GRAY} or self.planes not in (0, [0]):
self.cfamily_converted = True

clip = clip.resize.Bicubic(
Expand Down

0 comments on commit fe8b55d

Please sign in to comment.