From 4594dedf117e40a1ba783ef55df995e12ea8e5fe Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 5 Jun 2018 13:16:15 +0200 Subject: [PATCH] picture: copy more than the visible lines When there is a vertical offset the visible lines for each plane don't contain the extra lines. So we may not copy enough from the source. Until this is fixed we need to copy as many lines as possible. Fixes #20560 --- src/misc/picture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/misc/picture.c b/src/misc/picture.c index 2b55796def..e633cee42b 100644 --- a/src/misc/picture.c +++ b/src/misc/picture.c @@ -332,8 +332,7 @@ void plane_CopyPixels( plane_t *p_dst, const plane_t *p_src ) { const unsigned i_width = __MIN( p_dst->i_visible_pitch, p_src->i_visible_pitch ); - const unsigned i_height = __MIN( p_dst->i_visible_lines, - p_src->i_visible_lines ); + const unsigned i_height = __MIN( p_dst->i_lines, p_src->i_lines ); /* The 2x visible pitch check does two things: 1) Makes field plane_t's work correctly (see the deinterlacer module) -- 2.11.4.GIT