From 9823a4e64ef3388175fcb9e3cb208eb3e1821233 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 23 Oct 2002 15:32:40 +0000 Subject: [PATCH] If movie height is odd, the picture is placed badly, due to wrong rouding. patch by Balatoni Denes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7864 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_fbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index f3a89faf78..9d03a4fbb8 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -1064,7 +1064,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, return 1; } L123123875 = frame_buffer + (out_width - in_width) * fb_pixel_size / - 2 + (out_height - in_height) * fb_line_len / 2; + 2 + ( (out_height - in_height) / 2 ) * fb_line_len; if (verbose > 0) { if (verbose > 1) {