Skip to content

Commit

Permalink
Update srtcore/packet.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Aug 8, 2023
1 parent e4a7b0e commit e4bc426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srtcore/packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ CPacket* CPacket::clone() const
{
CPacket* pkt = new CPacket;
memcpy((pkt->m_nHeader), m_nHeader, HDR_SIZE);
pkt->allocate(m_PacketVector[PV_DATA].size());
pkt->allocate(this->getLength());
SRT_ASSERT(this->getLength() == pkt->getLength());
memcpy((pkt->m_pcData), m_pcData, m_PacketVector[PV_DATA].size());
pkt->m_DestAddr = m_DestAddr;

Expand Down

0 comments on commit e4bc426

Please sign in to comment.