summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-06-16 11:18:16 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-11-23 09:36:15 +0100
commit289882497a8c840f019d7b27d965148f1dbb153c (patch)
tree54579903726356299702aa95e949ea56650b96bf /gst
parent0580efc6a6d37b09bbcb2d27c504a0d8a171d6e2 (diff)
rtph265depay: fix crash with empty sprops-parameters
https://bugzilla.gnome.org/show_bug.cgi?id=780040
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph265depay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index c6545c052..47a137d71 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -842,6 +842,10 @@ gst_rtp_h265_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);