Avoid hardcoding VIDEO_FORMAT_H265_MAIN10 for HDR/10-bit color

This commit is contained in:
Cameron Gutman 2022-06-26 16:22:05 -05:00
commit be2f4433db
11 changed files with 18 additions and 18 deletions

View file

@ -364,7 +364,7 @@ public:
//
// https://github.com/moonlight-stream/moonlight-qt/issues/493
// https://github.com/moonlight-stream/moonlight-qt/issues/722
if (params->videoFormat != VIDEO_FORMAT_H265_MAIN10) {
if (!(params->videoFormat & VIDEO_FORMAT_MASK_10BIT)) {
int err;
uint32_t cpuType;
size_t size = sizeof(cpuType);