From 06b2bbd8c7eed8c893baa073e40ffddda19cf9c2 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Wed, 9 Jan 2019 16:25:36 +0100 Subject: [PATCH] rtph265pay: Only mark the last fragment of an AU Commit e721071dcac9f231e5e10b4bb31323658a6cdd1a removed the check for the end of fragmentation. As a result, all fragments of an AU's last NALU were marked. --- gst/rtp/gstrtph265pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index c793fff98e..d1a3a4229f 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -1068,7 +1068,7 @@ gst_rtp_h265_pay_payload_nal (GstRTPBasePayload * basepayload, /* If it's the last fragment and the end of this au, mark the end of * slice */ - gst_rtp_buffer_set_marker (&rtp, marker); + gst_rtp_buffer_set_marker (&rtp, end && marker); /* FU Header */ payload[2] = (start << 7) | (end << 6) | (nalType & 0x3f);