mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-08-07 16:26:33 +00:00
Add color space and color range options
This commit is contained in:
@@ -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