[vlc-commits] Revert "picture: round the number of visible lines to the upper multiple"

Steve Lhomme git at videolan.org
Mon Apr 16 18:25:08 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 16 18:24:59 2018 +0200| [6e8e69914c7434621a820933f044c235c71bd3d5] | committer: Steve Lhomme

Revert "picture: round the number of visible lines to the upper multiple"

This reverts commit 82f649983443292bd893962cac0484b7df8d1c89.

For now...

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

 src/misc/picture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/picture.c b/src/misc/picture.c
index 35c245e728..7506e47725 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -159,7 +159,7 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
         assert(w->den >= w->num);
 
         p->i_lines = height * h->num / h->den;
-        p->i_visible_lines = (fmt->i_visible_height + (h->den - 1)) * h->num / h->den;
+        p->i_visible_lines = fmt->i_visible_height * h->num / h->den;
 
         p->i_pitch = width * w->num / w->den * p_dsc->pixel_size;
         p->i_visible_pitch = fmt->i_visible_width * w->num / w->den



More information about the vlc-commits mailing list