Browse Source

obs-ffmpeg: Fix AMF AVC / HEVC check logic

Richard Stanway 3 years ago
parent
commit
88226db6b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-ffmpeg/texture-amf.cpp

+ 1 - 1
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";
 
 	/* ----------------------------------- */