mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Avoid hardcoding VIDEO_FORMAT_H265_MAIN10 for HDR/10-bit color
This commit is contained in:
@@ -216,7 +216,7 @@ bool VDPAURenderer::initialize(PDECODER_PARAMETERS params)
|
||||
VdpBool supported;
|
||||
uint32_t maxWidth, maxHeight;
|
||||
VdpRGBAFormat candidateFormat =
|
||||
params->videoFormat == VIDEO_FORMAT_H265_MAIN10 ?
|
||||
(params->videoFormat & VIDEO_FORMAT_MASK_10BIT) ?
|
||||
k_OutputFormats10Bit[i] : k_OutputFormats8Bit[i];
|
||||
|
||||
status = m_VdpOutputSurfaceQueryCapabilities(m_Device, candidateFormat,
|
||||
|
||||
Reference in New Issue
Block a user