mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
fixed stupid bug in buffer_span()
Original commit message from CVS: fixed stupid bug in buffer_span()
This commit is contained in:
parent
474a80cb8e
commit
c7c1192ab3
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ gst_buffer_span (GstBuffer *buf1, guint32 offset, GstBuffer *buf2, guint32 len)
|
|||
// allocate space for the copy
|
||||
newbuf->data = (guchar *)g_malloc(len);
|
||||
// copy the first buffer's data across
|
||||
memcpy(newbuf->data, buffer->data + offset, buf1->size - offset);
|
||||
memcpy(newbuf->data, buf1->data + offset, buf1->size - offset);
|
||||
// copy the second buffer's data across
|
||||
memcpy(newbuf->data + offset, buf2->data, len - (buf1->size - offset));
|
||||
|
||||
|
|
Loading…
Reference in a new issue