mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix copy RTP packet bug
This commit is contained in:
parent
2b4b6a8e65
commit
44aa976976
1 changed files with 1 additions and 1 deletions
|
@ -938,7 +938,7 @@ SrsRtpPacket2* SrsRtpPacket2::copy()
|
||||||
cp->payload_type_ = payload_type_;
|
cp->payload_type_ = payload_type_;
|
||||||
|
|
||||||
cp->nalu_type = nalu_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->actual_buffer_size_ = actual_buffer_size_;
|
||||||
cp->frame_type = frame_type;
|
cp->frame_type = frame_type;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue