Skip to content

Commit 041baae

Browse files
vtpl1Monotosh Das
andauthored
fixing pPacketData bug NVIDIA#204 (NVIDIA#208)
Co-authored-by: Monotosh Das <monotosh.das@vidoenetics.com>
1 parent 2bdc352 commit 041baae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PyNvCodec/TC/src/Tasks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright 2019 NVIDIA Corporation
3+
* Copyright 2021 Videonetics Technology Private Limited
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
56
* You may obtain a copy of the License at
@@ -240,7 +241,7 @@ struct NvdecDecodeFrame_Impl {
240241
: stream(cuStream), context(cuContext),
241242
nvDecoder(cuStream, cuContext, videoCodec) {
242243
pLastSurface = Surface::Make(format);
243-
pPacketData = Buffer::MakeOwnMem(1U);
244+
pPacketData = Buffer::MakeOwnMem(sizeof(PacketData));;
244245
}
245246

246247
~NvdecDecodeFrame_Impl() {

0 commit comments

Comments
 (0)