Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/LAVVideo/decoders/cuvid.cpp')
-rw-r--r--decoder/LAVVideo/decoders/cuvid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/decoders/cuvid.cpp b/decoder/LAVVideo/decoders/cuvid.cpp
index a76bf000..66107261 100644
--- a/decoder/LAVVideo/decoders/cuvid.cpp
+++ b/decoder/LAVVideo/decoders/cuvid.cpp
@@ -736,7 +736,7 @@ STDMETHODIMP CDecCuvid::CreateCUVIDDecoder(cudaVideoCodec codec, DWORD dwWidth,
{
DbgLog((LOG_TRACE, 10, L"CDecCuvid::CreateCUVIDDecoder(): Creating CUVID decoder instance"));
HRESULT hr = S_OK;
- BOOL bDXVAMode = (m_pD3DDevice9 && IsVistaOrNewer());
+ BOOL bDXVAMode = (m_pD3DDevice9 != nullptr);
cuda.cuvidCtxLock(m_cudaCtxLock, 0);
CUVIDDECODECREATEINFO *dci = &m_VideoDecoderInfo;