mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-24 00:26:17 +00:00
rtp: basepay: Fix off-by-one with seqnum-offset
Setting a seqnum-offset of 1 would've caused the first packet to have a seqnum of 2 instead of 1. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1705>
This commit is contained in:
parent
489021ed55
commit
bc81e78873
1 changed files with 1 additions and 1 deletions
|
@ -1103,7 +1103,7 @@ impl RtpBasePay2 {
|
||||||
timestamp_offset,
|
timestamp_offset,
|
||||||
seqnum_offset,
|
seqnum_offset,
|
||||||
use_stream_time: settings.onvif_no_rate_control || !settings.scale_rtptime,
|
use_stream_time: settings.onvif_no_rate_control || !settings.scale_rtptime,
|
||||||
last_seqnum: Wrapping(seqnum_offset),
|
last_seqnum: Wrapping(seqnum_offset) - Wrapping(1),
|
||||||
last_timestamp: Wrapping(timestamp_offset),
|
last_timestamp: Wrapping(timestamp_offset),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue