From d5d28055c1e816e90e8c2d1151816b0c3e760ff3 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sun, 3 Aug 2014 12:33:32 +0200 Subject: [PATCH] rtph264pay: unbreak au aligned byte-stream payloading --- gst/rtp/gstrtph264pay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index d3e319bb09..c451c718ce 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -1141,7 +1141,9 @@ gst_rtp_h264_pay_handle_buffer (GstRTPBasePayload * basepayload, */ next = next_start_code (data, size); - if (next == size && buffer != NULL) { + /* nal or au aligned input needs no delaying until next time */ + if (next == size && buffer != NULL && + rtph264pay->alignment == GST_H264_ALIGNMENT_UNKNOWN) { /* Didn't find the start of next NAL and it's not EOS, * handle it next time */ break;