[gegl] gegl:deinterlace fix clamping of coordinates



commit 8504f84008c0cf31e22fb006ecdfa223d7a16f36
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jan 3 20:13:38 2018 +0100

    gegl:deinterlace fix clamping of coordinates
    
    Fix copy/paste clamping problem, where width was used where height is
    appropriate. Fixes crash reported in bug #791607

 operations/common-gpl3+/deinterlace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/deinterlace.c b/operations/common-gpl3+/deinterlace.c
index 0822893..19772ab 100644
--- a/operations/common-gpl3+/deinterlace.c
+++ b/operations/common-gpl3+/deinterlace.c
@@ -237,7 +237,7 @@ process (GeglOperation       *operation,
          const GeglRectangle *result,
          gint                 level)
 {
-  GeglProperties              *o        = GEGL_PROPERTIES (operation);
+  GeglProperties          *o        = GEGL_PROPERTIES (operation);
   GeglOperationAreaFilter *op_area  = GEGL_OPERATION_AREA_FILTER (operation);
   const Babl              *format   = babl_format ("RGBA float");
   GeglRectangle            rect;
@@ -250,7 +250,7 @@ process (GeglOperation       *operation,
   rect.width  = CLAMP (result->width + op_area->left + op_area->right, 0,
                        boundary.width);
   rect.y      = CLAMP (result->y - op_area->top, boundary.y, boundary.y +
-                       boundary.width);
+                       boundary.height);
   rect.height = CLAMP (result->height + op_area->top + op_area->bottom, 0,
                        boundary.height);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]