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

Related to: https://bugzilla.gnome.org/show_bug.cgi?id=753430

https://bugzilla.gnome.org/show_bug.cgi?id=753228
This commit is contained in:
Luis de Bethencourt 2015-08-12 17:54:52 +01:00 committed by Tim-Philipp Müller
parent 18b628824b
commit 3bede1c95b

View file

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