From 30da7e5dfd0a0659499c77fbc23d31c836185ead Mon Sep 17 00:00:00 2001 From: pigeatgarlic <64737125+pigeatgarlic@users.noreply.github.com> Date: Sun, 5 May 2024 09:59:18 +0700 Subject: [PATCH] disable sw encoder --- src/video.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/video.cpp b/src/video.cpp index 5d9a8a91..2fd500a8 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -33,6 +33,8 @@ extern "C" { } #endif +// #define ALLOW_SW_ENCODER + using namespace std::literals; namespace video { @@ -924,15 +926,18 @@ namespace video { #endif #ifdef _WIN32 &quicksync, - &amdvce, + &amdvce #endif #ifdef __linux__ - &vaapi, + &vaapi #endif #ifdef __APPLE__ - &videotoolbox, + &videotoolbox +#endif + +#ifdef ALLOW_SW_ENCODER + ,&software #endif - &software }; static encoder_t *chosen_encoder;