mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtph264depay: fix crash with empty sprops-parameters
https://bugzilla.gnome.org/show_bug.cgi?id=780040
This commit is contained in:
parent
b434ba86f1
commit
c8f094cf7d
1 changed files with 4 additions and 0 deletions
|
@ -697,6 +697,10 @@ gst_rtp_h264_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
|
||||||
gint state = 0;
|
gint state = 0;
|
||||||
|
|
||||||
nal_len = strlen (params[i]);
|
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);
|
nal = gst_buffer_new_and_alloc (nal_len);
|
||||||
gst_buffer_map (nal, &nalmap, GST_MAP_READWRITE);
|
gst_buffer_map (nal, &nalmap, GST_MAP_READWRITE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue