Skip to content

Commit

Permalink
Make transfer characteristics identical if input is RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
joletb committed Dec 18, 2024
1 parent 597b980 commit 7407ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vspreview/core/types/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def prepare_vs_output(self, clip: vs.VideoNode, pack_rgb: bool = True, fmt: vs.V
})

if src.format.color_family == vs.RGB:
resizer_kwargs['transfer'] = resizer_kwargs['transfer_in']
del resizer_kwargs['matrix_in']
elif src.format.color_family == vs.GRAY:
clip = clip.std.RemoveFrameProps('_Matrix')
Expand Down

0 comments on commit 7407ef5

Please sign in to comment.