Require a test frame for Vulkan video decoding

This commit is contained in:
Cameron Gutman 2023-12-14 17:44:58 -06:00
commit 8aeb976128
2 changed files with 7 additions and 0 deletions

View file

@ -684,6 +684,12 @@ int PlVkRenderer::getDecoderCapabilities()
CAPABILITY_REFERENCE_FRAME_INVALIDATION_AV1;
}
bool PlVkRenderer::needsTestFrame()
{
// We need a test frame to verify that Vulkan video decoding is working
return true;
}
bool PlVkRenderer::isPixelFormatSupported(int videoFormat, AVPixelFormat pixelFormat)
{
if (m_Backend) {