rtph265depay: checking if depay has sps/pps nals before insertion
authorLuis de Bethencourt <luis@debethencourt.com>
Wed, 12 Aug 2015 16:54:52 +0000 (17:54 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 00:24:40 +0000 (00:24 +0000)
Related to: https://bugzilla.gnome.org/show_bug.cgi?id=753430

https://bugzilla.gnome.org/show_bug.cgi?id=753228

gst/rtp/gstrtph265depay.c

index 99755d7..7d573fe 100644 (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;