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.
This commit is contained in:
parent
5001ce6baa
commit
f96453277a
@ -1,3 +1,10 @@
|
|||||||
|
2007-10-18 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2007-10-17 Wim Taymans <wim.taymans@gmail.com>
|
2007-10-17 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
|
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
|
||||||
|
@ -210,7 +210,6 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||||||
/* Fragmentation Units FU-A */
|
/* Fragmentation Units FU-A */
|
||||||
guint8 nalHeader;
|
guint8 nalHeader;
|
||||||
guint limitedSize;
|
guint limitedSize;
|
||||||
|
|
||||||
int ii = 0, start = 1, end = 0, first = 0;
|
int ii = 0, start = 1, end = 0, first = 0;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (basepayload,
|
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);
|
outbuf = gst_rtp_buffer_new_allocate (limitedSize + 2, 0, 0);
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
|
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
|
||||||
gst_rtp_buffer_set_marker (outbuf, end);
|
|
||||||
payload = gst_rtp_buffer_get_payload (outbuf);
|
payload = gst_rtp_buffer_get_payload (outbuf);
|
||||||
|
|
||||||
if (limitedSize == idxdata) {
|
if (limitedSize == idxdata) {
|
||||||
@ -243,6 +241,7 @@ gst_rtp_h264_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||||||
ii);
|
ii);
|
||||||
end = 1;
|
end = 1;
|
||||||
}
|
}
|
||||||
|
gst_rtp_buffer_set_marker (outbuf, end);
|
||||||
|
|
||||||
/* FU indicator */
|
/* FU indicator */
|
||||||
payload[0] = (nalHeader & 0x60) | 28;
|
payload[0] = (nalHeader & 0x60) | 28;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user