When multiple nals are aggrgated, the marker bit should be associated only
with the last NAL of the packet. Otherwise we may break rendering in with
AU alignment.
#endif
while (payload_len > 2) {
+ gboolean last = FALSE;
nalu_size = (payload[0] << 8) | payload[1];
gst_rtp_copy_video_meta (rtph265depay, outbuf, rtp->buffer);
+ if (payload_len - nalu_size <= 2)
+ last = TRUE;
+
gst_rtp_h265_depay_handle_nal (rtph265depay, outbuf, timestamp,
- marker);
+ marker && last);
payload += nalu_size;
payload_len -= nalu_size;