vlc | branch: master | Victorien Le Couviour--Tuffet 
<victorien.lecouviour.tuf...@gmail.com> | Fri Aug  4 19:40:59 2017 +0200| 
[4a9e5b69520489bf280815ab12208b1240513877] | committer: Jean-Baptiste Kempf

splitter: wall: fix incorrect unecessary output condition

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a9e5b69520489bf280815ab12208b1240513877
---

 modules/video_splitter/wall.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_splitter/wall.c b/modules/video_splitter/wall.c
index ca19eac4dc..6ec29a0778 100644
--- a/modules/video_splitter/wall.c
+++ b/modules/video_splitter/wall.c
@@ -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;
             }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to