summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon.ko@samsung.com>2015-08-10 14:13:50 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-08-10 10:49:02 +0200
commit9c5c16eb57c1b12d10cb2bca7c4abd59e04583eb (patch)
tree109595e75ae4271f2b78771f65930f34fef64462
parenta95c761fdecd0df63f85c37a76d380891684513c (diff)
rtph264depay: checking if depay has sps/pps nals before insertion
https://bugzilla.gnome.org/show_bug.cgi?id=753430
-rw-r--r--gst/rtp/gstrtph264depay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index bb62f8ae5..940f8a982 100644
--- a/gst/rtp/gstrtph264depay.c
+++ b/gst/rtp/gstrtph264depay.c
@@ -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;