mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
rtph263ppay: use faster _adapter_copy() whem possible
This commit is contained in:
parent
f85ebb389c
commit
59dc9dac03
1 changed files with 1 additions and 3 deletions
|
@ -235,7 +235,6 @@ gst_rtp_h263p_pay_flush (GstRtpH263PPay * rtph263ppay)
|
||||||
while (avail > 0) {
|
while (avail > 0) {
|
||||||
guint towrite;
|
guint towrite;
|
||||||
guint8 *payload;
|
guint8 *payload;
|
||||||
guint8 *data;
|
|
||||||
guint payload_len;
|
guint payload_len;
|
||||||
gint header_len;
|
gint header_len;
|
||||||
guint next_gop = 0;
|
guint next_gop = 0;
|
||||||
|
@ -288,8 +287,7 @@ gst_rtp_h263p_pay_flush (GstRtpH263PPay * rtph263ppay)
|
||||||
|
|
||||||
payload = gst_rtp_buffer_get_payload (outbuf);
|
payload = gst_rtp_buffer_get_payload (outbuf);
|
||||||
|
|
||||||
data = (guint8 *) gst_adapter_peek (rtph263ppay->adapter, towrite);
|
gst_adapter_copy (rtph263ppay->adapter, &payload[header_len], 0, towrite);
|
||||||
memcpy (&payload[header_len], data, towrite);
|
|
||||||
|
|
||||||
/* 0 1
|
/* 0 1
|
||||||
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
|
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
|
||||||
|
|
Loading…
Reference in a new issue