Skip to content

Commit d6c3289

Browse files
committed
comments
1 parent 0001cf0 commit d6c3289

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/torchcodec/_core/NVCUVIDRuntimeLoader.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ T* bindFunction(const char* functionName) {
128128
}
129129

130130
bool _loadLibrary() {
131+
// Helper that just calls dlopen or equivalent on Windows. In a separate
132+
// function because of the #ifdef uglyness.
131133
#if defined(WIN64) || defined(_WIN64)
132134
#ifdef UNICODE
133135
static LPCWSTR nvcuvidDll = L"nvcuvid.dll";
@@ -255,7 +257,8 @@ cuvidDecodePicture(CUvideodecoder decoder, CUVIDPICPARAMS* picParams) {
255257
#if !defined(__CUVID_DEVPTR64) || defined(__CUVID_INTERNAL)
256258
// We need to protect the definition of the 32bit versions under the above
257259
// conditions (see cuviddec.h). Defining them unconditionally would cause
258-
// compilation errors when cuviddec.h re-defines those to the 64bit versions.
260+
// conflict compilation errors when cuviddec.h redefines those to the 64bit
261+
// versions.
259262
CUresult CUDAAPI cuvidMapVideoFrame(
260263
CUvideodecoder decoder,
261264
int pixIndex,

0 commit comments

Comments
 (0)