mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Refine payload NALU type parser
This commit is contained in:
parent
0cc3063703
commit
fa2fec3247
2 changed files with 3 additions and 6 deletions
|
@ -1965,7 +1965,9 @@ void SrsRtcVideoRecvTrack::on_before_decode_payload(SrsRtpPacket2* pkt, SrsBuffe
|
|||
return;
|
||||
}
|
||||
|
||||
uint8_t v = (uint8_t)pkt->nalu_type;
|
||||
uint8_t v = (uint8_t)(buf->head()[0] & kNalTypeMask);
|
||||
pkt->nalu_type = SrsAvcNaluType(v);
|
||||
|
||||
if (v == kStapA) {
|
||||
*ppayload = new SrsRtpSTAPPayload();
|
||||
*ppt = SrsRtpPacketPayloadTypeSTAP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue