Ensure serverCodecModeSupport is always non-zero

This commit is contained in:
Cameron Gutman 2023-07-05 19:46:30 -05:00
parent a81c6a1c5e
commit 5424576f73

View file

@ -136,7 +136,8 @@ NvComputer::NvComputer(NvHTTP& http, QString serverInfo)
this->serverCodecModeSupport = codecSupport.toInt();
}
else {
this->serverCodecModeSupport = 0;
// Assume H.264 is always supported
this->serverCodecModeSupport = 0x3;
}
QString maxLumaPixelsHEVC = NvHTTP::getXmlString(serverInfo, "MaxLumaPixelsHEVC");