Skip to content

Commit 9b9ec60

Browse files
author
Your Name
committed
Fix bug in cudacodec preventing it from building against the Nvidia Video Codec SDK 12
1 parent 1754d03 commit 9b9ec60

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/cudacodec/src/NvEncoder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ bool NvEncoder::Reconfigure(const NV_ENC_RECONFIGURE_PARAMS* pReconfigureParams)
431431

432432
NV_ENC_REGISTERED_PTR NvEncoder::RegisterResource(void* pBuffer, NV_ENC_INPUT_RESOURCE_TYPE eResourceType,
433433
int width, int height, int pitch, NV_ENC_BUFFER_FORMAT bufferFormat, NV_ENC_BUFFER_USAGE bufferUsage,
434-
NV_ENC_FENCE_POINT_D3D12* pInputFencePoint, NV_ENC_FENCE_POINT_D3D12* pOutputFencePoint)
434+
NV_ENC_FENCE_POINT_D3D12* pInputFencePoint)
435435
{
436436
NV_ENC_REGISTER_RESOURCE registerResource = {};
437437
registerResource.version = NV_ENC_REGISTER_RESOURCE_VER;
@@ -443,7 +443,6 @@ NV_ENC_REGISTERED_PTR NvEncoder::RegisterResource(void* pBuffer, NV_ENC_INPUT_RE
443443
registerResource.bufferFormat = bufferFormat;
444444
registerResource.bufferUsage = bufferUsage;
445445
registerResource.pInputFencePoint = pInputFencePoint;
446-
registerResource.pOutputFencePoint = pOutputFencePoint;
447446
NVENC_API_CALL(m_nvenc.nvEncRegisterResource(m_hEncoder, &registerResource));
448447

449448
return registerResource.registeredResource;

modules/cudacodec/src/NvEncoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class NvEncoder
235235
*/
236236
NV_ENC_REGISTERED_PTR RegisterResource(void* pBuffer, NV_ENC_INPUT_RESOURCE_TYPE eResourceType,
237237
int width, int height, int pitch, NV_ENC_BUFFER_FORMAT bufferFormat, NV_ENC_BUFFER_USAGE bufferUsage = NV_ENC_INPUT_IMAGE,
238-
NV_ENC_FENCE_POINT_D3D12* pInputFencePoint = NULL, NV_ENC_FENCE_POINT_D3D12* pOutputFencePoint = NULL);
238+
NV_ENC_FENCE_POINT_D3D12* pInputFencePoint = NULL);
239239

240240
/**
241241
* @brief This function returns maximum width used to open the encoder session.

0 commit comments

Comments
 (0)