summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorAnders Skargren <anders.skargren@axis.com>2007-10-18 08:27:56 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-10-18 08:27:56 +0000
commitf96453277a43588aceefc00e3a1694008de234bc (patch)
treef8a80e28187ac738b0c72fbf9c6c8eb7cfa35e32 /gst
parent5001ce6baa3e45938d2523e0298c2674151a0ed2 (diff)
gst/rtp/gstrtph264pay.c: Set marker bit correctly.
Original commit message from CVS: Patch by: Anders Skargren <anders dot skargren at axis dot com> * gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_handle_buffer): Set marker bit correctly.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph264pay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index afb1e671..cd76db6e 100644
--- a/gst/rtp/gstrtph264pay.c
+++ b/gst/rtp/gstrtph264pay.c
@@ -210,7 +210,6 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
/* Fragmentation Units FU-A */
guint8 nalHeader;
guint limitedSize;
-
int ii = 0, start = 1, end = 0, first = 0;
GST_DEBUG_OBJECT (basepayload,
@@ -235,7 +234,6 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
outbuf = gst_rtp_buffer_new_allocate (limitedSize + 2, 0, 0);
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
- gst_rtp_buffer_set_marker (outbuf, end);
payload = gst_rtp_buffer_get_payload (outbuf);
if (limitedSize == idxdata) {
@@ -243,6 +241,7 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
ii);
end = 1;
}
+ gst_rtp_buffer_set_marker (outbuf, end);
/* FU indicator */
payload[0] = (nalHeader & 0x60) | 28;