diff --git a/codec/encoder/core/src/wels_preprocess.cpp b/codec/encoder/core/src/wels_preprocess.cpp index ba1a9f10..796e23cf 100644 --- a/codec/encoder/core/src/wels_preprocess.cpp +++ b/codec/encoder/core/src/wels_preprocess.cpp @@ -119,6 +119,7 @@ CWelsLib::CWelsLib (void* pEncCtx) { } CWelsLib::~CWelsLib() { +#ifndef NO_DYNAMIC_VP if (m_pVpLib) { #if defined(WIN32) HMODULE shModule = (HMODULE)m_pVpLib; @@ -134,6 +135,7 @@ CWelsLib::~CWelsLib() { #endif m_pVpLib = NULL; } +#endif } void* CWelsLib::QueryFunction (const str_t* pName) {