mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtph265depay: don't insert SPS/PPS inline for hvc1 output
Only for byte-stream or hev1. For hvc1 the SPS/PPS are in the caps as codec_data field and in this case they shouldn't be in the stream data as well. The output caps should be updated with the new codec_data if needed, for hvc1.
This commit is contained in:
parent
8da79ca824
commit
c8ff205089
1 changed files with 2 additions and 1 deletions
|
@ -611,7 +611,8 @@ 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) {
|
||||
if (rtph265depay->output_format != GST_H265_STREAM_FORMAT_HVC1
|
||||
&& (rtph265depay->sps->len > 0 || rtph265depay->pps->len > 0)) {
|
||||
gint i;
|
||||
GstBuffer *codec_data;
|
||||
GstMapInfo map;
|
||||
|
|
Loading…
Reference in a new issue