projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f85ebb3
)
rtph263ppay: use faster _adapter_copy() whem possible
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 24 Dec 2009 16:01:54 +0000
(17:01 +0100)
committer
Wim Taymans
<wim@metal.(none)>
Thu, 24 Dec 2009 16:01:54 +0000
(17:01 +0100)
gst/rtp/gstrtph263ppay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtph263ppay.c
b/gst/rtp/gstrtph263ppay.c
index
067abe5
..
6049cb3
100644
(file)
--- a/
gst/rtp/gstrtph263ppay.c
+++ b/
gst/rtp/gstrtph263ppay.c
@@
-235,7
+235,6
@@
gst_rtp_h263p_pay_flush (GstRtpH263PPay * rtph263ppay)
while (avail > 0) {
guint towrite;
guint8 *payload;
- guint8 *data;
guint payload_len;
gint header_len;
guint next_gop = 0;
@@
-288,8
+287,7
@@
gst_rtp_h263p_pay_flush (GstRtpH263PPay * rtph263ppay)
payload = gst_rtp_buffer_get_payload (outbuf);
- data = (guint8 *) gst_adapter_peek (rtph263ppay->adapter, towrite);
- memcpy (&payload[header_len], data, towrite);
+ gst_adapter_copy (rtph263ppay->adapter, &payload[header_len], 0, towrite);
/* 0 1
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5