gaudi: fix to 30780db1
authorLuis de Bethencourt <luis.bg@samsung.com>
Wed, 22 Apr 2015 14:04:03 +0000 (15:04 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 22 Apr 2015 14:04:05 +0000 (15:04 +0100)
The second check for (factor == 0) creeped in the last commit.
Apologies.

gst/gaudieffects/gstexclusion.c

index 60e9632..8f762ad 100644 (file)
@@ -280,12 +280,6 @@ transform (guint32 * src, guint32 * dest, gint video_area, gint factor)
     green = (in >> 8) & 0xff;
     blue = (in) & 0xff;
 
-    if (factor == 0) {
-      red = 0;
-      green = 0;
-      blue = 0;
-    }
-
     red = factor -
         (((factor - red) * (factor - red) / factor) + ((green * red) / factor));
     green = factor -