rtph264depay: checking if depay has sps/pps nals before insertion
authorHyunjun Ko <zzoon.ko@samsung.com>
Mon, 10 Aug 2015 05:13:50 +0000 (14:13 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 10 Aug 2015 08:49:02 +0000 (10:49 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=753430

gst/rtp/gstrtph264depay.c

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