rtph264pay: Only mark the last fragment of an AU

Commit 4add820cce removed the check for
the end of fragmentation. As a result, all fragments of an AU's last
NALU were marked.

Potential fix for https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/540
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-01-09 15:56:51 +01:00 committed by Nicolas Dufresne
parent 3537c4d217
commit 798f320ba7

View file

@ -965,7 +965,7 @@ gst_rtp_h264_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, end_of_au);
gst_rtp_buffer_set_marker (&rtp, end && end_of_au);
/* FU indicator */
payload[0] = (nalHeader & 0x60) | 28;