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;