rtph264depay: fix segfault on empty payload

https://bugzilla.gnome.org/show_bug.cgi?id=635843
This commit is contained in:
Thijs Vermeir 2010-11-26 15:00:29 +01:00 committed by Tim-Philipp Müller
parent 5195655805
commit e7b1655069

View file

@ -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|
* +-+-+-+-+-+-+-+-+