summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-03-16 00:41:44 +0000
committerTim-Philipp Müller <tim@centricular.com>2017-03-16 11:32:10 +0000
commitab602eb8a576decc9d2e0d8b3dcb7876a6f4041f (patch)
tree2175e0eabfb829ab8400d3fd66b8e5deb92e89f2
parent4077a52d6db62a513fca46939b4d7a4545f18f16 (diff)
rtph264depay: fix crash with empty sprops-parameters
https://bugzilla.gnome.org/show_bug.cgi?id=780040
-rw-r--r--gst/rtp/gstrtph264depay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index cd2795933..bef0b1609 100644
--- a/gst/rtp/gstrtph264depay.c
+++ b/gst/rtp/gstrtph264depay.c
@@ -697,6 +697,10 @@ gst_rtp_h264_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
gint state = 0;
nal_len = strlen (params[i]);
+ if (nal_len == 0) {
+ GST_WARNING_OBJECT (depayload, "empty param '%s' (#%d)", params[i], i);
+ continue;
+ }
nal = gst_buffer_new_and_alloc (nal_len);
gst_buffer_map (nal, &nalmap, GST_MAP_READWRITE);