opusenc: fix pointer mismatch in memcpy on drain

This commit is contained in:
Vincent Penquerc'h 2011-11-15 17:49:48 +00:00
parent 85afc77dea
commit c5c67c1913

View file

@ -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;