From 59dc9dac03aa2416e92c95c02e999bf5b7da2a5c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 24 Dec 2009 17:01:54 +0100 Subject: [PATCH] rtph263ppay: use faster _adapter_copy() whem possible --- gst/rtp/gstrtph263ppay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c index 067abe5d4a..6049cb35ca 100644 --- 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