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
|
@ -81,8 +81,8 @@ srs_error_t SrsDtls::init(SrsRequest* r)
|
|||
#if OPENSSL_VERSION_NUMBER < 0x10002000L // v1.0.2
|
||||
dtls_ctx = SSL_CTX_new(DTLSv1_method());
|
||||
#else
|
||||
//dtls_ctx = SSL_CTX_new(DTLS_method());
|
||||
dtls_ctx = SSL_CTX_new(DTLSv1_method());
|
||||
dtls_ctx = SSL_CTX_new(DTLS_method());
|
||||
//dtls_ctx = SSL_CTX_new(DTLSv1_method());
|
||||
//dtls_ctx = SSL_CTX_new(DTLSv1_2_method());
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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