Request 1 slice per frame when not using slicing

This commit is contained in:
Cameron Gutman 2015-08-17 23:02:04 -07:00
parent 19849a1ac5
commit 81f8e5427a

View File

@ -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);