mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code
This commit is contained in:
parent
db0090be05
commit
561acd26c5
2 changed files with 3 additions and 2 deletions
|
@ -1921,7 +1921,7 @@ void SrsRtcVideoRecvTrack::on_before_decode_payload(SrsRtpPacket2* pkt, SrsBuffe
|
||||||
uint8_t v = (uint8_t)pkt->nalu_type;
|
uint8_t v = (uint8_t)pkt->nalu_type;
|
||||||
if (v == kStapA) {
|
if (v == kStapA) {
|
||||||
*ppayload = new SrsRtpSTAPPayload();
|
*ppayload = new SrsRtpSTAPPayload();
|
||||||
*ppt = SrsRtpPacketPayloadTypeUnknown;
|
*ppt = SrsRtpPacketPayloadTypeSTAP;
|
||||||
} else if (v == kFuA) {
|
} else if (v == kFuA) {
|
||||||
*ppayload = _srs_rtp_fua_cache->allocate();
|
*ppayload = _srs_rtp_fua_cache->allocate();
|
||||||
*ppt = SrsRtpPacketPayloadTypeFUA2;
|
*ppt = SrsRtpPacketPayloadTypeFUA2;
|
||||||
|
|
|
@ -849,7 +849,8 @@ void SrsRtpPacket2::recycle_payload()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset the payload and its type.
|
// Reset the payload and its type.
|
||||||
payload_ = NULL; payload_type_ = SrsRtpPacketPayloadTypeUnknown;
|
payload_ = NULL;
|
||||||
|
payload_type_ = SrsRtpPacketPayloadTypeUnknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SrsRtpPacket2::recycle_shared_msg()
|
void SrsRtpPacket2::recycle_shared_msg()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue