1
0
Fork 0
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:
winlin 2020-05-04 07:40:02 +08:00
parent 47df22df9e
commit 15955b6cdd
4 changed files with 4 additions and 15 deletions

View file

@ -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) {