Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Issue #253: fixing typo which caused buggy Buffer allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
rarzumanyan committed Oct 5, 2021
1 parent 0631f84 commit bbd8baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyNvCodec/src/PyNvCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ Surface *PyNvDecoder::getDecodedSurfaceFromPacket(py::array_t<uint8_t> *pPacket,

if (p_packet_data) {
packetData = unique_ptr<Buffer>(
Buffer::MakeOwnMem(sizeof(*p_packet_data, p_packet_data)));
Buffer::MakeOwnMem(sizeof(PacketData), p_packet_data));
upDecoder->SetInput(packetData.get(), 1U);
}

Expand Down

0 comments on commit bbd8baa

Please sign in to comment.