Reject 10-bit and YUV 4:4:4 in the CUDA path

Vulkan Video supports these on all Nvidia GPUs.
This commit is contained in:
Cameron Gutman committed 2026-11-04 23:12:39 -06:00
1 parent 1ced9dd9b0
commit aa54ba2a05
2 files changed
+7 -2

No files matched your search

@@ -16,10 +16,15 @@ CUDARenderer::~CUDARenderer()
}
}
bool CUDARenderer::initialize(PDECODER_PARAMETERS)
bool CUDARenderer::initialize(PDECODER_PARAMETERS params)
{
int err;
// This renderer only supports NV12 output
if (params->videoFormat & (VIDEO_FORMAT_MASK_10BIT | VIDEO_FORMAT_MASK_YUV444)) {
return false;
}
err = av_hwdevice_ctx_create(&m_HwContext, AV_HWDEVICE_TYPE_CUDA, nullptr, nullptr, 0);
if (err != 0) {
m_InitFailureReason = InitFailureReason::NoSoftwareSupport;