From 81f8e5427aaa3a19ce8122e74e425ea557317e44 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 17 Aug 2015 23:02:04 -0700 Subject: [PATCH] Request 1 slice per frame when not using slicing --- limelight-common/SdpGenerator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/limelight-common/SdpGenerator.c b/limelight-common/SdpGenerator.c index 7826e20..7d8c688 100644 --- a/limelight-common/SdpGenerator.c +++ b/limelight-common/SdpGenerator.c @@ -142,6 +142,10 @@ static int addGen4Options(PSDP_OPTION *head, char* addrStr) { // Use slicing for increased performance on some decoders slicesPerFrame = (unsigned char) (VideoCallbacks.capabilities >> 24); + if (slicesPerFrame == 0) { + // If not using slicing, we request 1 slice per frame + slicesPerFrame = 1; + } sprintf(payloadStr, "%d", slicesPerFrame); err |= addAttributeString(head, "x-nv-video[0].videoEncoderSlicesPerFrame", payloadStr);