mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
Don't do void pointer arithmetic.
This commit is contained in:
parent
2b68886ea1
commit
6b1e08f277
1 changed files with 1 additions and 1 deletions
|
@ -901,7 +901,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
||||||
collect_data, insize, indata);
|
collect_data, insize, indata);
|
||||||
/* clear if we are only going to fill a partial buffer */
|
/* clear if we are only going to fill a partial buffer */
|
||||||
if (G_UNLIKELY (outsize > insize))
|
if (G_UNLIKELY (outsize > insize))
|
||||||
memset (outdata + insize, 0, outsize - insize);
|
memset ((guint8 *) outdata + insize, 0, outsize - insize);
|
||||||
/* and copy the data into it */
|
/* and copy the data into it */
|
||||||
memcpy (outdata, indata, insize);
|
memcpy (outdata, indata, insize);
|
||||||
empty = FALSE;
|
empty = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue