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>
This commit is contained in:
Mathieu Duponchelle 2020-10-14 14:30:34 +02:00
parent a73ede42cf
commit 5fb5abc8a8

View file

@ -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;
}