Set marker bit only if there are multiple packets

This commit is contained in:
Aaro Altonen 2020-10-22 14:39:33 +03:00
parent e185160f94
commit 0102bb2801
1 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ rtp_error_t uvg_rtp::frame_queue::flush_queue()
}
/* set the marker bit of the last packet to 1 */
if (active_->packets.size() > 1)
((uint8_t *)&active_->rtp_headers[active_->rtphdr_ptr - 1])[1] |= (1 << 7);
transaction_mtx_.lock();