From 14b1d34a0615fed78ca7eb86dd7cd5ea2ed3cb00 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sun, 10 Apr 2022 21:30:31 -0700 Subject: [PATCH] win-dshow: Use Rec. 2100 (PQ) by default for P010 --- plugins/win-dshow/win-dshow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index 575c50465..449579d76 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -1100,6 +1100,9 @@ DShowInput::GetColorSpace(obs_data_t *settings) const if (astrcmpi(space, "2100HLG") == 0) return VIDEO_CS_2100_HLG; + if (videoConfig.format == VideoFormat::P010) + return VIDEO_CS_2100_PQ; + return VIDEO_CS_DEFAULT; }