summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-15 17:49:48 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-15 17:50:39 +0000
commitc5c67c191318c43374cb6def88663b3f822087df (patch)
tree3ad472553815edb4525dae010ac62747f50f556f /ext
parent85afc77dea03100fa0dcacfce3909efa65a935dd (diff)
opusenc: fix pointer mismatch in memcpy on drain
Diffstat (limited to 'ext')
-rw-r--r--ext/opus/gstopusenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 363eb6976..4ef0ffdbe 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -540,7 +540,7 @@ gst_opus_enc_encode (GstOpusEnc * enc, GstBuffer * buf)
size = ((bsize / bytes) + 1) * bytes;
mdata = g_malloc0 (size);
- memcpy (data, bdata, bsize);
+ memcpy (mdata, bdata, bsize);
gst_buffer_unmap (buf, bdata, bsize);
bdata = NULL;
data = mdata;