summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2014-08-03 12:33:32 +0200
committerMark Nauwelaerts <mnauw@users.sourceforge.net>2014-08-03 14:42:45 +0200
commitd5d28055c1e816e90e8c2d1151816b0c3e760ff3 (patch)
tree71b1da8377d02675c2959e12374e349dca87a3d5
parentdd9f7168927239fe37244aba33ec618ddb9e4872 (diff)
rtph264pay: unbreak au aligned byte-stream payloading
-rw-r--r--gst/rtp/gstrtph264pay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index d3e319bb0..c451c718c 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;