From deb0e69d6450955b0dc74f2644ecdf465646db35 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 30 Nov 2017 23:26:32 -0800 Subject: [PATCH] HDR is a Gen7 feature --- src/SdpGenerator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SdpGenerator.c b/src/SdpGenerator.c index 137ce9b..4cbc4f8 100644 --- a/src/SdpGenerator.c +++ b/src/SdpGenerator.c @@ -284,7 +284,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) { // Disable slicing on HEVC err |= addAttributeString(&optionHead, "x-nv-video[0].videoEncoderSlicesPerFrame", "1"); - if (AppVersionQuad[0] >= 5) { + if (AppVersionQuad[0] >= 7) { // Enable HDR if requested if (StreamConfig.enableHdr) { err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "1"); @@ -304,7 +304,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) { err |= addAttributeString(&optionHead, "x-nv-clientSupportHevc", "0"); err |= addAttributeString(&optionHead, "x-nv-vqos[0].bitStreamFormat", "0"); - if (AppVersionQuad[0] >= 5) { + if (AppVersionQuad[0] >= 7) { // HDR is not supported on H.264 err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "0"); }