From 852104b4eee0609ad62abc87ca6f014d1a4a63cd Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 31 Oct 2011 17:04:23 +0000 Subject: [PATCH] edgetv: don't leave bits of the output buffer uninitialized Let's initialize them to zero. It looks alright, but then it also looks alright with v3, or with the corresponding pixels from the source. I don't know what the original intent would be, and the original effectv source also has this bug/feature. https://bugzilla.gnome.org/show_bug.cgi?id=661841 --- gst/effectv/gstedge.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c index f4b7762..6b6b092 100644 --- a/gst/effectv/gstedge.c +++ b/gst/effectv/gstedge.c @@ -189,8 +189,12 @@ gst_edgetv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) dest[width + 3] = v3; dest[width * 2] = v2; dest[width * 2 + 1] = v2; + dest[width * 2 + 2] = 0; + dest[width * 2 + 3] = 0; dest[width * 3] = v2; dest[width * 3 + 1] = v2; + dest[width * 3 + 2] = 0; + dest[width * 3 + 3] = 0; src += 4; dest += 4; -- 2.7.4