mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor the RTP packet.
This commit is contained in:
parent
47df22df9e
commit
15955b6cdd
4 changed files with 4 additions and 15 deletions
|
@ -1882,7 +1882,7 @@ srs_error_t SrsRtcPublisher::on_rtp(char* buf, int nb_buf)
|
|||
SrsRtpPacket2* pkt = new SrsRtpPacket2();
|
||||
|
||||
pkt->set_decode_handler(this);
|
||||
pkt->set_original_bytes(buf, nb_buf);
|
||||
pkt->original_bytes = buf;
|
||||
|
||||
SrsBuffer b(buf, nb_buf);
|
||||
if ((err = pkt->decode(&b)) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue