Skip to content

Commit

Permalink
FunctionUtil: Properly return chroma planes
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 8, 2024
1 parent 9c6ee6b commit 05f73eb
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 @@ -149,7 +149,7 @@ def work_clip(self) -> ConstantFormatVideoNode:
def chroma_planes(self) -> list[vs.VideoNode]:
"""Get a list of all chroma planes in the normalised clip."""

if self != [0] or self.norm_clip.format.num_planes == 1:
if self == [0] or self.norm_clip.format.num_planes == 1:
return []

return [plane(self.norm_clip, i) for i in (1, 2)]
Expand Down

0 comments on commit 05f73eb

Please sign in to comment.