From: Nicolas Dufresne Date: Tue, 18 Dec 2018 18:16:44 +0000 (-0500) Subject: rtph265pay: Don't wait for next nal when input is aligned X-Git-Tag: 1.19.3~509^2~1257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d397cf6d1f7f87e8389c01314742c319edcc30fb;p=platform%2Fupstream%2Fgstreamer.git rtph265pay: Don't wait for next nal when input is aligned This is the same as what was done on rtph264pay in the patch d5d28055c1e816e90e8c2d1151816b0c3e760ff3 --- diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index 4622c04..ca2435f 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -1241,7 +1241,9 @@ gst_rtp_h265_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 && + rtph265pay->alignment == GST_H265_ALIGNMENT_UNKNOWN) { /* Didn't find the start of next NAL and it's not EOS, * handle it next time */ break;