mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine comments for SrsRtpPacket2
This commit is contained in:
parent
d6c16a7e23
commit
f2d0c34244
2 changed files with 5 additions and 1 deletions
|
@ -1040,6 +1040,7 @@ srs_error_t SrsRtpPacket2::decode(SrsBuffer* buf)
|
|||
nalu_type = SrsAvcNaluType((uint8_t)(buf->head()[0] & kNalTypeMask));
|
||||
}
|
||||
|
||||
// TODO: FIXME: We should keep payload to NULL and return if buffer is empty.
|
||||
// If user set the decode handler, call it to set the payload.
|
||||
if (decode_handler) {
|
||||
decode_handler->on_before_decode_payload(this, buf, &payload_, &payload_type_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue