Skip to content

Commit

Permalink
Merge pull request #223 from befinitiv/fix_rtcp_zero_base_timestamp
Browse files Browse the repository at this point in the history
Fix RTCP SR RTP timestamp value calculation
  • Loading branch information
jrsnen committed Jul 25, 2024
2 parents af65310 + 42f47e0 commit 60cc41d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ void uvgrtp::rtp::fill_header(uint8_t *buffer, bool use_old_ts)
}
else {
*(uint32_t*)&buffer[4] = htonl((u_long)timestamp_);
rtp_ts_ = timestamp_;
}
}
else if (timestamp_ == INVALID_TS) {
Expand All @@ -186,6 +187,7 @@ void uvgrtp::rtp::fill_header(uint8_t *buffer, bool use_old_ts)
}
else {
*(uint32_t *)&buffer[4] = htonl((u_long)timestamp_);
rtp_ts_ = timestamp_;
}
}

Expand Down

0 comments on commit 60cc41d

Please sign in to comment.