From b8c3658c42bfbaef6052282514d5a1a235f27f6f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 3 Jan 2026 02:53:44 -0600 Subject: [PATCH] Skip modifier check if the frame doesn't have any modifiers --- app/streaming/video/ffmpeg-renderers/drm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/drm.cpp b/app/streaming/video/ffmpeg-renderers/drm.cpp index b8d69ca4..b1df008f 100644 --- a/app/streaming/video/ffmpeg-renderers/drm.cpp +++ b/app/streaming/video/ffmpeg-renderers/drm.cpp @@ -1196,8 +1196,8 @@ bool DrmRenderer::addFbForFrame(AVFrame *frame, uint32_t* newFbId, bool testMode // Check if plane can actually be imported bool formatMatch = false; - // If we have an IN_FORMATS property, use that since it supports modifiers too - if (auto prop = m_VideoPlane.property("IN_FORMATS")) { + // If we have an IN_FORMATS property and the frame has DRM modifiers, use that since it supports modifiers too + if (auto prop = m_VideoPlane.property("IN_FORMATS"); prop && drmFrame->objects[0].format_modifier != DRM_FORMAT_MOD_INVALID) { drmModePropertyBlobPtr blob = drmModeGetPropertyBlob(m_DrmFd, prop->initialValue()); if (blob) { auto *header = (struct drm_format_modifier_blob *)blob->data;