rtp: Fix bug when using custom RTP timestamps with multiple large NALs in an h26x access unit
This commit is contained in:
parent
ee7d4b1f18
commit
0e631832ab
|
@ -162,7 +162,12 @@ void uvgrtp::rtp::fill_header(uint8_t *buffer, bool use_old_ts)
|
|||
*(uint32_t *)&buffer[8] = htonl(*ssrc_.get());
|
||||
|
||||
if (use_old_ts) {
|
||||
*(uint32_t*)&buffer[4] = htonl((u_long)rtp_ts_);
|
||||
if (timestamp_ == INVALID_TS) {
|
||||
*(uint32_t*)&buffer[4] = htonl((u_long)rtp_ts_);
|
||||
}
|
||||
else {
|
||||
*(uint32_t*)&buffer[4] = htonl((u_long)timestamp_);
|
||||
}
|
||||
}
|
||||
else if (timestamp_ == INVALID_TS) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue