diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 17:29:37 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 17:29:37 +0100 |
commit | e7e7f262009852a8515fa6db336138b61a4c3aef (patch) | |
tree | 918fc4aa18cd47e8e3b470b140ee14e40ade6844 /gst/rtp | |
parent | c99f7579f33207fdc5b607ba5e5d0e95e1b34cb2 (diff) |
rtph264depay: don't insert SPS/PPS inline for AVC output
SPS/PPS are in the caps in this case and shouldn't be in
the stream data.
Diffstat (limited to 'gst/rtp')
-rw-r--r-- | gst/rtp/gstrtph264depay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index bef0b1609..83356cb3d 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -440,8 +440,9 @@ 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) { + /* Insert SPS and PPS into the stream on next opportunity (if bytestream) */ + if (rtph264depay->byte_stream + && (rtph264depay->sps->len > 0 || rtph264depay->pps->len > 0)) { gint i; GstBuffer *codec_data; GstMapInfo map; |