Skip to content

Remove unused async decoder preallocations#32

Closed
KazukiKomon wants to merge 1 commit into
NVIDIA:mainfrom
KazukiKomon:zhy/remove-async-prealloc
Closed

Remove unused async decoder preallocations#32
KazukiKomon wants to merge 1 commit into
NVIDIA:mainfrom
KazukiKomon:zhy/remove-async-prealloc

Conversation

@KazukiKomon

Copy link
Copy Markdown
Contributor

Summary

Remove unused cuMemAllocAsync preallocations from NvDecoder::HandleVideoSequence and NvDecoder::ReconfigureDecoder.

These local pFrame[8] allocations are not stored in m_vpFrame, so they are not managed by the decoder frame lifecycle and cannot be released by the destructor. Output frame buffers are already allocated lazily in HandlePictureDisplay and tracked by m_vpFrame.

This is intended as a small cleanup/risk reduction before enabling bEnableAsyncAllocations in GOP decode paths.

Verification

  • git diff --check

Signed-off-by: hongyizhang <hongyizhang02@deeproute.ai>
@KazukiKomon

Copy link
Copy Markdown
Contributor Author

Closing this draft because it only covered a cleanup follow-up, not the intended internal MR diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant