[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.70,1.71

Arpi of Ize arpi at mplayerhq.hu
Wed Oct 23 17:33:08 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv7464

Modified Files:
	vo_fbdev.c 
Log Message:
If movie height is odd, the picture is placed badly, due to wrong rouding.
patch by Balatoni Denes <pnis at coder.hu>


Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- vo_fbdev.c	9 Oct 2002 00:52:15 -0000	1.70
+++ vo_fbdev.c	23 Oct 2002 15:32:40 -0000	1.71
@@ -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) {




More information about the MPlayer-cvslog mailing list