mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
geometrictransform: Set output buffer data to 0
Initialize output buffer data to 0 before doing the transform.
This commit is contained in:
parent
964c71b7c6
commit
581b63c678
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,8 @@ gst_geometric_transform_transform (GstBaseTransform * trans, GstBuffer * buf,
|
||||||
|
|
||||||
g_return_val_if_fail (gt->map, GST_FLOW_ERROR);
|
g_return_val_if_fail (gt->map, GST_FLOW_ERROR);
|
||||||
|
|
||||||
|
memset (GST_BUFFER_DATA (outbuf), 0, GST_BUFFER_SIZE (outbuf));
|
||||||
|
|
||||||
ptr = gt->map;
|
ptr = gt->map;
|
||||||
for (y = 0; y < gt->height; y++) {
|
for (y = 0; y < gt->height; y++) {
|
||||||
for (x = 0; x < gt->width; x++) {
|
for (x = 0; x < gt->width; x++) {
|
||||||
|
|
Loading…
Reference in a new issue