mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
RTC: Fix bug for header parsing
This commit is contained in:
parent
9c17721eb9
commit
fd605fc4ac
1 changed files with 1 additions and 1 deletions
|
@ -1124,7 +1124,7 @@ srs_error_t SrsRtcPublishStream::on_rtp(char* data, int nb_data)
|
|||
|
||||
// Decode the header first.
|
||||
SrsRtpHeader h;
|
||||
if (pt_to_drop_ && twcc_id_) {
|
||||
if (pt_to_drop_ || twcc_id_) {
|
||||
SrsBuffer b(data, nb_data);
|
||||
h.ignore_padding(true); h.set_extensions(&extension_types_);
|
||||
if ((err = h.decode(&b)) != srs_success) {
|
||||
|
|
Loading…
Reference in a new issue