[MPlayer-dev-eng] [PATCH] Make aa video output workable

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Feb 28 22:27:15 CET 2011


On Mon, Feb 28, 2011 at 07:32:58PM +0200, Alexei Ababilov wrote:
> diff -Naur mplayer-export-2011-02-28.orig/libvo/vo_aa.c mplayer-export-2011-02-28/libvo/vo_aa.c
> --- mplayer-export-2011-02-28.orig/libvo/vo_aa.c	2010-11-14 11:12:34.000000000 +0200
> +++ mplayer-export-2011-02-28/libvo/vo_aa.c	2011-02-28 19:10:09.000000000 +0200
> @@ -677,6 +677,9 @@
>  
>          /* initializing of aalib */
>  
> +    if (force_monitor_aspect == 0.0) {
> +	force_monitor_aspect = 4.0/3.0;
> +    }

This will ignore a -monitor-pixel-aspect given on the command-line,
which is not ok.
In addition, there is not much reason to assume a monitor aspect
of 4/3, if anything the monitor-pixel-aspect should be chosen to
match the typical aspect of characters.

> @@ -686,7 +689,7 @@
>  	major = sbuf.st_rdev >> 8;
>  	vt = minor = sbuf.st_rdev & 0xff;
>  	close (fd);
> -	sprintf (fname, "/dev/vcsa%2.2i", vt);
> +	sprintf (fname, "/dev/vcsa%d", vt);

Trying both might be nicer.


More information about the MPlayer-dev-eng mailing list