[fix] use dynamic DLL loading for cuda library

This commit is contained in:
dijunkun
2024-08-12 17:26:51 +08:00
parent 1626b482de
commit f02286365c
12 changed files with 21999 additions and 78 deletions

View File

@@ -6,6 +6,7 @@
#include "common.h"
#include "log.h"
#include "nlohmann/json.hpp"
#include "nvcodec_api.h"
using nlohmann::json;
@@ -227,6 +228,7 @@ int PeerConnection::CreateVideoCodec(bool hardware_acceleration) {
"MacOS not support hardware acceleration, use default software codec");
}
#else
InitNvCodecApi();
#endif
if (av1_encoding_) {