From e7b1655069fe2f03daf9e53b865bc110bd3c5131 Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Fri, 26 Nov 2010 15:00:29 +0100 Subject: [PATCH] rtph264depay: fix segfault on empty payload https://bugzilla.gnome.org/show_bug.cgi?id=635843 --- gst/rtp/gstrtph264depay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index c63087e07b..915c9fdf11 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -542,6 +542,9 @@ gst_rtp_h264_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) GST_DEBUG_OBJECT (rtph264depay, "receiving %d bytes", payload_len); + if (payload_len == 0) + return NULL; + /* +---------------+ * |0|1|2|3|4|5|6|7| * +-+-+-+-+-+-+-+-+