From 9df65cb814bdd7c025df91d1548369314bd2f09a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 19 Aug 2024 20:57:11 -0500 Subject: [PATCH] Allow selection of AV1 or HEVC for software decoding when HDR or YUV444 are enabled These advanced features often/always are only supported with AV1 or HEVC. --- app/streaming/session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index c833134e..411e2f98 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -712,7 +712,7 @@ bool Session::initialize() m_Preferences->enableHdr ? VIDEO_FORMAT_AV1_MAIN10 : VIDEO_FORMAT_AV1_MAIN8, m_StreamConfig.width, m_StreamConfig.height, - m_StreamConfig.fps)) { + m_StreamConfig.fps) && !m_Preferences->enableHdr && !m_Preferences->enableYUV444) { m_SupportedVideoFormats.removeByMask(VIDEO_FORMAT_MASK_AV1); } #else @@ -725,7 +725,7 @@ bool Session::initialize() m_Preferences->enableHdr ? VIDEO_FORMAT_H265_MAIN10 : VIDEO_FORMAT_H265, m_StreamConfig.width, m_StreamConfig.height, - m_StreamConfig.fps)) { + m_StreamConfig.fps) && !m_Preferences->enableHdr && !m_Preferences->enableYUV444) { m_SupportedVideoFormats.removeByMask(VIDEO_FORMAT_MASK_H265); }