rtph264depay: checking if depay has sps/pps nals before insertion

https://bugzilla.gnome.org/show_bug.cgi?id=753430
This commit is contained in:
Hyunjun Ko 2015-08-10 14:13:50 +09:00 committed by Sebastian Dröge
parent a95c761fde
commit 9c5c16eb57

View file

@ -463,7 +463,7 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay)
gst_caps_unref (srccaps); gst_caps_unref (srccaps);
/* Insert SPS and PPS into the stream on next opportunity */ /* Insert SPS and PPS into the stream on next opportunity */
{ if (rtph264depay->sps->len > 0 || rtph264depay->pps->len > 0) {
gint i; gint i;
GstBuffer *codec_data; GstBuffer *codec_data;
GstMapInfo map; GstMapInfo map;