mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-27 15:48:44 -05:00
The root cause of the issue is `swscale` dropping the second plane of biplanar pixel data, resulting in an "incomplete" frame being fed to the CVPixelBuffer. As CVPixelBuffers have dedicated support for full range colour, use these directly, which improves performance even further (as any conversion for full range data is avoided as well). To ensure that OBS does not implicitly enable conversion via `swscale` a video conversion struct needs to be set in any case, ensuring that the output range and colourspace match the output configuration.