mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-29 19:22:36 +08:00
mac-virtualcam: Don't convert color space when converting color format
Converting the color space was likely accidental as it isn't explicitly set. Unfortunately, not setting it means that it gets set to the default, which is Rec. 709 and thus a conversion takes place when having any other space. This conversion leads to a massive performance penalty that isn't necessary.
This commit is contained in:
@@ -178,6 +178,8 @@ static bool virtualcam_output_start(void *data)
|
||||
conversion.format = VIDEO_FORMAT_NV12;
|
||||
conversion.width = vcam->videoInfo.output_width;
|
||||
conversion.height = vcam->videoInfo.output_height;
|
||||
conversion.colorspace = vcam->videoInfo.colorspace;
|
||||
conversion.range = vcam->videoInfo.range;
|
||||
obs_output_set_video_conversion(vcam->output, &conversion);
|
||||
|
||||
video_format = convert_video_format_to_mac(conversion.format);
|
||||
|
||||
Reference in New Issue
Block a user