From a4a837dd39fa2a6b562472ba12ff57e1f1e7c548 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 15 Nov 2011 17:49:48 +0000 Subject: [PATCH] opusenc: fix pointer mismatch in memcpy on drain --- ext/opus/gstopusenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index 363eb6976e..4ef0ffdbe8 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;