changeset 7863:45d64e3fa09a

If movie height is odd, the picture is placed badly, due to wrong rouding. patch by Balatoni Denes <pnis@coder.hu>
author arpi
date Wed, 23 Oct 2002 15:32:40 +0000
parents 013c255225d8
children dacc35bc92c7
files libvo/vo_fbdev.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Wed Oct 23 14:46:20 2002 +0000
+++ b/libvo/vo_fbdev.c	Wed Oct 23 15:32:40 2002 +0000
@@ -1064,7 +1064,7 @@
 		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) {