diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 4363044da2..f3f47a8527 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -533,7 +533,7 @@ no_select: /* patch pktdata and len when stripping off the headers */ if (G_UNLIKELY (udpsrc->skip_first_bytes != 0)) { - if (G_UNLIKELY (readsize <= udpsrc->skip_first_bytes)) + if (G_UNLIKELY (readsize < udpsrc->skip_first_bytes)) goto skip_error; pktdata += udpsrc->skip_first_bytes;