Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-10-14 15:30:34 +0300
committerMathieu Duponchelle <mathieu@centricular.com>2020-10-14 15:30:34 +0300
commit5fb5abc8a8f1c021238562e013a171f3c9959625 (patch)
tree976d749f7262c48969f18d37fed48a0006292fb4 /gst/rtpmanager
parenta73ede42cf3489d4848d66a4d1350b7b73eff31f (diff)
rtpst2022-1-fecenc: fix input seqnum check
We need to cast the incremented last seqnum to guint16 for consistent checks on wraparound Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/770>
Diffstat (limited to 'gst/rtpmanager')
-rw-r--r--gst/rtpmanager/gstrtpst2022-1-fecenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpst2022-1-fecenc.c b/gst/rtpmanager/gstrtpst2022-1-fecenc.c
index 98cf42eb8..35fc348c9 100644
--- a/gst/rtpmanager/gstrtpst2022-1-fecenc.c
+++ b/gst/rtpmanager/gstrtpst2022-1-fecenc.c
@@ -389,7 +389,8 @@ gst_rtpst_2022_1_fecenc_sink_chain (GstPad * pad, GstObject * parent,
}
if (enc->last_media_seqnum_set
- && enc->last_media_seqnum + 1 != gst_rtp_buffer_get_seq (&rtp)) {
+ && (guint16) (enc->last_media_seqnum + 1) !=
+ gst_rtp_buffer_get_seq (&rtp)) {
GST_ERROR_OBJECT (enc, "consecutive sequence numbers are required");
goto error;
}