splitter: wall: fix incorrect unecessary output condition
authorVictorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com>
Fri, 4 Aug 2017 17:40:59 +0000 (19:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Aug 2017 20:06:17 +0000 (22:06 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_splitter/wall.c

index ca19eac..6ec29a0 100644 (file)
@@ -254,8 +254,8 @@ static int Open( vlc_object_t *p_this )
         {
             i_height = i_target_height;
         }
-        else if( ( y + 1 ) * i_target_height < i_vstart ||
-                 ( y * i_target_height ) > i_vend )
+        else if( ( y + 1 ) * i_target_height <= i_vstart ||
+                 ( y * i_target_height ) >= i_vend )
         {
             i_height = 0;
         }
@@ -287,8 +287,8 @@ static int Open( vlc_object_t *p_this )
             {
                 i_width = i_target_width;
             }
-            else if( ( x + 1 ) * i_target_width < i_hstart ||
-                     ( x * i_target_width ) > i_hend )
+            else if( ( x + 1 ) * i_target_width <= i_hstart ||
+                     ( x * i_target_width ) >= i_hend )
             {
                 i_width = 0;
             }