From 88226db6b33fa4afa40c9c14b877e093fbb30cbe Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Fri, 22 Jul 2022 00:45:34 +0200 Subject: [PATCH] obs-ffmpeg: Fix AMF AVC / HEVC check logic --- plugins/obs-ffmpeg/texture-amf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-ffmpeg/texture-amf.cpp b/plugins/obs-ffmpeg/texture-amf.cpp index 5e1643104..0f4164296 100644 --- a/plugins/obs-ffmpeg/texture-amf.cpp +++ b/plugins/obs-ffmpeg/texture-amf.cpp @@ -1663,7 +1663,7 @@ try { hevc_supported |= info.supports_hevc; } - if (!avc_supported || !hevc_supported) + if (!avc_supported && !hevc_supported) throw "Neither AVC nor HEVC are supported by any devices"; /* ----------------------------------- */