1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine payload NALU type parser

This commit is contained in:
winlin 2021-04-01 14:46:28 +08:00
parent aa5d872b8c
commit 7823d75a38
2 changed files with 3 additions and 6 deletions

View file

@ -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;