rtph265pay: Only mark the last fragment of an AU
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Wed, 9 Jan 2019 15:25:36 +0000 (16:25 +0100)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Wed, 9 Jan 2019 15:36:40 +0000 (15:36 +0000)
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

index c793fff..d1a3a42 100644 (file)
@@ -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);