[gst-cvs] gst-plugins-good: rtph264depay: fix segfault on empty payload

Tim Müller tpm at kemper.freedesktop.org
Fri Nov 26 15:45:37 PST 2010


Module: gst-plugins-good
Branch: master
Commit: e7b1655069fe2f03daf9e53b865bc110bd3c5131
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=e7b1655069fe2f03daf9e53b865bc110bd3c5131

Author: Thijs Vermeir <thijsvermeir at gmail.com>
Date:   Fri Nov 26 15:00:29 2010 +0100

rtph264depay: fix segfault on empty payload

https://bugzilla.gnome.org/show_bug.cgi?id=635843

---

 gst/rtp/gstrtph264depay.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index c63087e..915c9fd 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|
      * +-+-+-+-+-+-+-+-+





More information about the Gstreamer-commits mailing list