projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b434ba8
)
rtph264depay: fix crash with empty sprops-parameters
author
Tim-Philipp Müller
<tim@centricular.com>
Thu, 16 Mar 2017 00:41:44 +0000
(
00:41
+0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 16 Mar 2017 00:41:44 +0000
(
00:41
+0000)
https://bugzilla.gnome.org/show_bug.cgi?id=780040
gst/rtp/gstrtph264depay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtph264depay.c
b/gst/rtp/gstrtph264depay.c
index
cd27959
..
bef0b16
100644
(file)
--- 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);