mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Add color space and color range options
This commit is contained in:
1 parent
b0213d06a7
commit
e60a7ef75f
2 files changed
+23
No files matched your search
@@ -393,6 +393,11 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
AudioPacketDuration = 5;
|
||||
}
|
||||
|
||||
if (AppVersionQuad[0] >= 7) {
|
||||
sprintf(payloadStr, "%d", (StreamConfig.colorSpace << 1) | StreamConfig.colorRange);
|
||||
err |= addAttributeString(&optionHead, "x-nv-video[0].encoderCscMode", payloadStr);
|
||||
}
|
||||
|
||||
if (err == 0) {
|
||||
return optionHead;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user