1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

RTC: Fix copy RTP packet bug

This commit is contained in:
winlin 2021-02-28 18:22:04 +08:00
parent 2719e4c0be
commit 50860325dd

View file

@ -938,7 +938,7 @@ SrsRtpPacket2* SrsRtpPacket2::copy()
cp->payload_type_ = payload_type_;
cp->nalu_type = nalu_type;
cp->shared_buffer_ = shared_buffer_->copy2();
cp->shared_buffer_ = shared_buffer_? shared_buffer_->copy2() : NULL;
cp->actual_buffer_size_ = actual_buffer_size_;
cp->frame_type = frame_type;