Don't test HDR encoding with H.264

It doesn't work on any GPU, and even if it did, Moonlight doesn't support it.
This commit is contained in:
Cameron Gutman 2023-04-04 22:32:28 -05:00
parent 65268212ee
commit bd443395c6

View File

@ -1866,7 +1866,9 @@ namespace video {
h264.videoFormat = 0; h264.videoFormat = 0;
hevc.videoFormat = 1; hevc.videoFormat = 1;
encoder.h264[flag] = validate_config(disp, encoder, h264) >= 0; // HDR is not supported with H.264. Don't bother even trying it.
encoder.h264[flag] = flag != encoder_t::DYNAMIC_RANGE && validate_config(disp, encoder, h264) >= 0;
if (encoder.hevc[encoder_t::PASSED]) { if (encoder.hevc[encoder_t::PASSED]) {
encoder.hevc[flag] = validate_config(disp, encoder, hevc) >= 0; encoder.hevc[flag] = validate_config(disp, encoder, hevc) >= 0;
} }