[MPlayer-dev-eng] [PATCH] fbdev fullscreen placement

Balatoni Denes pnis at coder.hu
Wed Oct 23 16:38:35 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

If movie height is odd, the picture is placed badly, due
to wrong rouding.

bye
Denes


- -- 
"Use the source Luke !"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9trRraQToeq3jgogRAl4HAJ0W2YsRvjJVus3KnZJokUnPKFDNuwCfXAcp
QV3qS5SQLZkP/GvMKNSdzn4=
=Lrfv
-----END PGP SIGNATURE-----
-------------- next part --------------
--- libvo/vo_fbdev.c	Wed Oct  9 02:52:15 2002
+++ libvo/vo_fbdev.c	Wed Oct 23 16:33:38 2002
@@ -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-dev-eng mailing list