mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-22 16:09:12 +00:00
Merge pull request #12 from irtimmer/disableSlicing
Place slicing behind a flag as not all video decoders support it.
This commit is contained in:
@@ -139,8 +139,10 @@ static int addGen4Options(PSDP_OPTION *head, char* addrStr) {
|
||||
|
||||
err |= addAttributeString(head, "x-nv-video[0].rateControlMode", "4");
|
||||
|
||||
// Use slicing for increased performance on some decoders
|
||||
err |= addAttributeString(head, "x-nv-video[0].videoEncoderSlicesPerFrame", "4");
|
||||
if (VideoCallbacks.capabilities & CAPABILITY_SLICING) {
|
||||
// Use slicing for increased performance on some decoders
|
||||
err |= addAttributeString(head, "x-nv-video[0].videoEncoderSlicesPerFrame", "4");
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user