diff --git a/PyNvCodec/src/PyNvCodec.cpp b/PyNvCodec/src/PyNvCodec.cpp index bc7ed419..61e2d23a 100644 --- a/PyNvCodec/src/PyNvCodec.cpp +++ b/PyNvCodec/src/PyNvCodec.cpp @@ -749,7 +749,7 @@ Surface *PyNvDecoder::getDecodedSurfaceFromPacket(py::array_t *pPacket, if (p_packet_data) { packetData = unique_ptr( - Buffer::MakeOwnMem(sizeof(*p_packet_data, p_packet_data))); + Buffer::MakeOwnMem(sizeof(PacketData), p_packet_data)); upDecoder->SetInput(packetData.get(), 1U); }