mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
opusenc: fix pointer mismatch in memcpy on drain
This commit is contained in:
parent
dc1e8fef48
commit
a4a837dd39
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ gst_opus_enc_encode (GstOpusEnc * enc, GstBuffer * buf)
|
||||||
|
|
||||||
size = ((bsize / bytes) + 1) * bytes;
|
size = ((bsize / bytes) + 1) * bytes;
|
||||||
mdata = g_malloc0 (size);
|
mdata = g_malloc0 (size);
|
||||||
memcpy (data, bdata, bsize);
|
memcpy (mdata, bdata, bsize);
|
||||||
gst_buffer_unmap (buf, bdata, bsize);
|
gst_buffer_unmap (buf, bdata, bsize);
|
||||||
bdata = NULL;
|
bdata = NULL;
|
||||||
data = mdata;
|
data = mdata;
|
||||||
|
|
Loading…
Reference in a new issue