We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bdc352 commit 041baaeCopy full SHA for 041baae
PyNvCodec/TC/src/Tasks.cpp
@@ -1,5 +1,6 @@
1
/*
2
* Copyright 2019 NVIDIA Corporation
3
+ * Copyright 2021 Videonetics Technology Private Limited
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
@@ -240,7 +241,7 @@ struct NvdecDecodeFrame_Impl {
240
241
: stream(cuStream), context(cuContext),
242
nvDecoder(cuStream, cuContext, videoCodec) {
243
pLastSurface = Surface::Make(format);
- pPacketData = Buffer::MakeOwnMem(1U);
244
+ pPacketData = Buffer::MakeOwnMem(sizeof(PacketData));;
245
}
246
247
~NvdecDecodeFrame_Impl() {
0 commit comments