[vlc-commits] splitter: wall: fix incorrect unecessary output condition
Victorien Le Couviour--Tuffet
git at videolan.org
Sun Aug 6 22:06:23 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at 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 <jb at 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;
}
More information about the vlc-commits
mailing list